Skip to content

Commit

Permalink
TASK: Add ckeditor update notes for future me ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Mar 24, 2023
1 parent caefcb5 commit b930a88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

const setTextOfElement = (textElement, newText) => {
// todo use `UpcastWriter.createText` and `UpcastWriter.replace` but we cant get ahold of the writer until: https://github.com/neos/neos-ui/issues/3436
// fyi when ckeditor is updated, this property will become private one could use `_data` instead
textElement._textData = newText
}

const traverseTextElements = (element, textElementVisitor) => {
// fyi when ckeditor is updated, this is deprecated and will change to "$text"
if (element.is("text")) {
textElementVisitor(element)
return
Expand Down
16 changes: 7 additions & 9 deletions Resources/Private/NeosUserInterface/src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import manifest from "@neos-project/neos-ui-extensibility";
import { createClipboardInputTransformationPlugin } from "./ClipboardInputTransformationPlugin";

const addPlugin = (Plugin) => (ckEditorConfiguration, options) => {
return {
...ckEditorConfiguration,
plugins: [
...(ckEditorConfiguration.plugins ?? []),
Plugin
]
};
};
const addPlugin = (Plugin) => (ckEditorConfiguration, options) => ({
...ckEditorConfiguration,
plugins: [
...(ckEditorConfiguration.plugins ?? []),
Plugin
]
})

manifest('Visol.Neos.ClipboardInputTransformation', {}, (globalRegistry, { frontendConfiguration }) => {
const ckEditorRegistry = globalRegistry.get('ckEditor5');
Expand Down
4 changes: 2 additions & 2 deletions Resources/Public/NeosUserInterface/Plugin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b930a88

Please sign in to comment.