Files
huly-platform/plugins/text-editor/src/plugin.ts
T
2024-07-12 15:42:13 +07:00

89 lines
2.9 KiB
TypeScript

//
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2022, 2023, 2024 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
import { type Class, type Ref } from '@hcengineering/core'
import { type IntlString, type Metadata, type Plugin, plugin } from '@hcengineering/platform'
import { type TextEditorExtensionFactory, type RefInputActionItem } from './types'
/**
* @public
*/
export const textEditorId = 'text-editor' as Plugin
export default plugin(textEditorId, {
class: {
RefInputActionItem: '' as Ref<Class<RefInputActionItem>>,
TextEditorExtensionFactory: '' as Ref<Class<TextEditorExtensionFactory>>
},
metadata: {
CollaboratorUrl: '' as Metadata<string>
},
string: {
TableOfContents: '' as IntlString,
Suggested: '' as IntlString,
NoItems: '' as IntlString,
Attach: '' as IntlString,
TextStyle: '' as IntlString,
Emoji: '' as IntlString,
GIF: '' as IntlString,
Mention: '' as IntlString,
Underlined: '' as IntlString,
EditorPlaceholder: '' as IntlString,
Edit: '' as IntlString,
Bold: '' as IntlString,
Italic: '' as IntlString,
Strikethrough: '' as IntlString,
Link: '' as IntlString,
Save: '' as IntlString,
OrderedList: '' as IntlString,
BulletedList: '' as IntlString,
Blockquote: '' as IntlString,
Code: '' as IntlString,
CodeBlock: '' as IntlString,
Send: '' as IntlString,
FullDescription: '' as IntlString,
NoFullDescription: '' as IntlString,
EnableDiffMode: '' as IntlString,
AlignCenter: '' as IntlString,
AlignLeft: '' as IntlString,
AlignRight: '' as IntlString,
ViewImage: '' as IntlString,
ViewOriginal: '' as IntlString,
MoreActions: '' as IntlString,
InsertTable: '' as IntlString,
AddColumnBefore: '' as IntlString,
AddColumnAfter: '' as IntlString,
DeleteColumn: '' as IntlString,
AddRowBefore: '' as IntlString,
AddRowAfter: '' as IntlString,
DeleteRow: '' as IntlString,
DeleteTable: '' as IntlString,
Duplicate: '' as IntlString,
CategoryRow: '' as IntlString,
CategoryColumn: '' as IntlString,
Table: '' as IntlString,
TableOptions: '' as IntlString,
Width: '' as IntlString,
Height: '' as IntlString,
Unset: '' as IntlString,
Image: '' as IntlString,
SeparatorLine: '' as IntlString,
TodoList: '' as IntlString
}
})