mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-29 19:29:36 +02:00
* feat(text-editor): add highlight action Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * feat(text-editor): add subscript and superscript actions Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * feat(text-editor): add mathematics inline and block actions Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * chore(text-editor): add mathematics and katex dependencies Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * fix(text-editor): fix eslint strict-boolean-expressions in mathematics extension Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * fix(text-editor): change max-width of toolbar to display all icons correctly Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * chore(text-editor): add subscript and superscript as direct dependencies Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * chore(text-editor): add missing locale keys for new text editor actions [temp, AI-generated] Adds placeholder translations (English fallback) for Highlight, Subscript, Superscript, Mathematics, and MathematicsBlock to all non-English locale files. Translations are not reviewed and should be replaced by a native speaker. Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> * fix(text-editor): fix subscript/superscript serialization and extension placement Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> --------- Signed-off-by: ComputerCrack <github.compacter838@simplelogin.com> Co-authored-by: ComputerCrack <github.compacter838@simplelogin.com>
69 lines
3.0 KiB
TypeScript
69 lines
3.0 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 { mergeIds, type Resource } from '@hcengineering/platform'
|
|
import textEditor, {
|
|
type TextActionActiveFunction,
|
|
type TextActionFunction,
|
|
type TextActionVisibleFunction,
|
|
textEditorId
|
|
} from '@hcengineering/text-editor'
|
|
|
|
export default mergeIds(textEditorId, textEditor, {
|
|
function: {
|
|
FormatLink: '' as Resource<TextActionFunction>,
|
|
OpenTableOptions: '' as Resource<TextActionFunction>,
|
|
SelectTable: '' as Resource<TextActionFunction>,
|
|
RefreshTable: '' as Resource<TextActionFunction>,
|
|
ShowTableDiff: '' as Resource<TextActionFunction>,
|
|
SeeOriginalTableData: '' as Resource<TextActionFunction>,
|
|
OpenImage: '' as Resource<TextActionFunction>,
|
|
ExpandImage: '' as Resource<TextActionFunction>,
|
|
MoreImageActions: '' as Resource<TextActionFunction>,
|
|
ConfigureNote: '' as Resource<TextActionFunction>,
|
|
DownloadImage: '' as Resource<TextActionFunction>,
|
|
|
|
IsEditableTableActive: '' as Resource<TextActionVisibleFunction>,
|
|
IsTableToolbarContext: '' as Resource<TextActionVisibleFunction>,
|
|
IsRefreshableTableActive: '' as Resource<TextActionVisibleFunction>,
|
|
IsEditableNote: '' as Resource<TextActionVisibleFunction>,
|
|
IsEditable: '' as Resource<TextActionVisibleFunction>,
|
|
IsTextStylingEnabled: '' as Resource<TextActionVisibleFunction>,
|
|
IsHeadingVisible: '' as Resource<TextActionVisibleFunction>,
|
|
|
|
CreateInlineComment: '' as Resource<TextActionFunction>,
|
|
|
|
ShouldShowCreateInlineCommentAction: '' as Resource<TextActionVisibleFunction>,
|
|
|
|
ShouldShowConvertToLinkPreviewAction: '' as Resource<TextActionVisibleFunction>,
|
|
ConvertToLinkPreviewActionIsActive: '' as Resource<TextActionActiveFunction>,
|
|
ConvertToLinkPreviewAction: '' as Resource<TextActionFunction>,
|
|
|
|
ShouldShowConvertToEmbedPreviewAction: '' as Resource<TextActionVisibleFunction>,
|
|
ConvertToEmbedPreviewActionIsActive: '' as Resource<TextActionActiveFunction>,
|
|
ConvertToEmbedPreviewAction: '' as Resource<TextActionFunction>,
|
|
|
|
ShouldShowCopyPreviewLinkAction: '' as Resource<TextActionVisibleFunction>,
|
|
CopyPreviewLinkAction: '' as Resource<TextActionFunction>,
|
|
|
|
SetBackgroundColor: '' as Resource<TextActionFunction>,
|
|
SetTextColor: '' as Resource<TextActionFunction>,
|
|
|
|
IsMathInlineActive: '' as Resource<TextActionActiveFunction>,
|
|
IsMathBlockActive: '' as Resource<TextActionActiveFunction>
|
|
}
|
|
})
|