Skip to content

Commit

Permalink
FIX TinyMCE custom config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed May 2, 2023
1 parent 24e697f commit 7849e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions client/src/legacy/HtmlEditorField.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ ss.editorWrappers.tinyMCE = (function() {
tinymce.EditorManager.baseURL = config.baseURL;
}

config.skin = config.skin || 'silverstripe';

// Bind the floatpanel hide and reposition listener to the closest scrollable panel
tinymce.init(config).then((editors) => {
if(editors.length > 0 && editors[0].container) {
Expand Down

0 comments on commit 7849e18

Please sign in to comment.