Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wysiwyg): Upgrade Suneditor to 2.47.0 and set sticky toolbar config #242

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions assets/js/editors/editors/suneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const initEditor = () => {
codeMirror: CodeMirror,
height: 'auto',
plugins: suneditorPlugins,
buttonList: []
buttonList: [],
stickyToolbar: false,
});
}

Expand All @@ -23,7 +24,7 @@ export default {
const editorModel = initEditor();
target.querySelectorAll('[data-component="wysiwyg-editor"][data-editor-type="suneditor"]').forEach((component) => {

// SundEditor is ID based, so we need to make sure that the ID is unique
// SunEditor is ID based, so we need to make sure that the ID is unique
if (currentEditors.includes(component.id)) {
component.id = `${component.id}-${Math.random().toString(36).substring(7)}`;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"gulp": "^4.0.2",
"highlight.js": "^11.10.0",
"mustache": "^4.0.1",
"suneditor": "^2.45.1"
"suneditor": "^2.47.0"
}
}
2 changes: 1 addition & 1 deletion src/Resources/public/js/rich-editor-highlight.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Resources/public/js/rich-editor.js

Large diffs are not rendered by default.

Loading