fix(ckeditor): mentions not working in attribute editor

This commit is contained in:
Elian Doran 2025-05-06 19:42:32 +03:00
parent ff0a24df55
commit 72dced679d
No known key found for this signature in database
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,6 @@ import type { CommandData, EventData, EventListener, FilteredCommandNames } from
import type { default as FAttribute, AttributeType } from "../../entities/fattribute.js"; import type { default as FAttribute, AttributeType } from "../../entities/fattribute.js";
import type FNote from "../../entities/fnote.js"; import type FNote from "../../entities/fnote.js";
import { escapeQuotes } from "../../services/utils.js"; import { escapeQuotes } from "../../services/utils.js";
import { buildConfig } from "../type_widgets/ckeditor/config.js";
const HELP_TEXT = ` const HELP_TEXT = `
<p>${t("attribute_editor.help_text_body1")}</p> <p>${t("attribute_editor.help_text_body1")}</p>

View File

@ -52,7 +52,8 @@ const EXTERNAL_PLUGINS: typeof Plugin[] = [
export const CORE_PLUGINS: typeof Plugin[] = [ export const CORE_PLUGINS: typeof Plugin[] = [
Clipboard, Enter, SelectAll, Clipboard, Enter, SelectAll,
ShiftEnter, Typing, Undo, ShiftEnter, Typing, Undo,
Paragraph Paragraph,
Mention
]; ];
export const COMMON_PLUGINS: typeof Plugin[] = [ export const COMMON_PLUGINS: typeof Plugin[] = [
@ -107,7 +108,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
SpecialCharacters, SpecialCharacters,
SpecialCharactersEssentials, SpecialCharactersEssentials,
FindAndReplace, FindAndReplace,
Mention,
PageBreak, PageBreak,
GeneralHtmlSupport, GeneralHtmlSupport,
TextPartLanguage, TextPartLanguage,

6
pnpm-lock.yaml generated
View File

@ -6,7 +6,7 @@ settings:
patchedDependencies: patchedDependencies:
'@ckeditor/ckeditor5-mention': '@ckeditor/ckeditor5-mention':
hash: ykir47wdhuap7iioe7mudxpk74 hash: ea634450951529f434461216c50e9197d59e5cf9992c25ef1d38c602268d1313
path: patches/@ckeditor__ckeditor5-mention.patch path: patches/@ckeditor__ckeditor5-mention.patch
importers: importers:
@ -15396,7 +15396,7 @@ snapshots:
'@ckeditor/ckeditor5-widget': 43.2.0 '@ckeditor/ckeditor5-widget': 43.2.0
ckeditor5: 43.2.0 ckeditor5: 43.2.0
'@ckeditor/ckeditor5-mention@43.2.0(patch_hash=ykir47wdhuap7iioe7mudxpk74)': '@ckeditor/ckeditor5-mention@43.2.0(patch_hash=ea634450951529f434461216c50e9197d59e5cf9992c25ef1d38c602268d1313)':
dependencies: dependencies:
'@ckeditor/ckeditor5-core': 43.2.0 '@ckeditor/ckeditor5-core': 43.2.0
'@ckeditor/ckeditor5-typing': 43.2.0 '@ckeditor/ckeditor5-typing': 43.2.0
@ -20849,7 +20849,7 @@ snapshots:
'@ckeditor/ckeditor5-list': 43.2.0 '@ckeditor/ckeditor5-list': 43.2.0
'@ckeditor/ckeditor5-markdown-gfm': 43.2.0 '@ckeditor/ckeditor5-markdown-gfm': 43.2.0
'@ckeditor/ckeditor5-media-embed': 43.2.0 '@ckeditor/ckeditor5-media-embed': 43.2.0
'@ckeditor/ckeditor5-mention': 43.2.0(patch_hash=ykir47wdhuap7iioe7mudxpk74) '@ckeditor/ckeditor5-mention': 43.2.0(patch_hash=ea634450951529f434461216c50e9197d59e5cf9992c25ef1d38c602268d1313)
'@ckeditor/ckeditor5-minimap': 43.2.0 '@ckeditor/ckeditor5-minimap': 43.2.0
'@ckeditor/ckeditor5-page-break': 43.2.0 '@ckeditor/ckeditor5-page-break': 43.2.0
'@ckeditor/ckeditor5-paragraph': 43.2.0 '@ckeditor/ckeditor5-paragraph': 43.2.0