Skip to content

Commit

Permalink
Issue 17731 tinymce (#17786)
Browse files Browse the repository at this point in the history
* #17731 fixes switching issue

* #17731 fixes switching issue
  • Loading branch information
wezell authored and dsilvam committed Jan 3, 2020
1 parent 2c005d8 commit 367cf23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Expand Up @@ -359,12 +359,15 @@ var cmsfile=null;
<%}%>
<%}%>
<%}%>
console.log(textAreaId + "tinyPropOverride", eval(textAreaId + "tinyPropOverride"));
let tinyConf = eval(textAreaId + "tinyPropOverride");
if(tinyConf.plugins != undefined && tinyConf.plugins[2] != undefined){
tinyConf.plugins[2]=tinyConf.plugins[2].replace("compat3x","");
}
console.log(textAreaId, tinyConf );
//Enabling the wysiwyg
try {
var wellTinyMCE = new tinymce.Editor(textAreaId, eval(textAreaId + "tinyPropOverride"), tinymce.EditorManager);
var wellTinyMCE = new tinymce.Editor(textAreaId, tinyConf, tinymce.EditorManager);
wellTinyMCE.render();
wellTinyMCE.on('change', emmitFieldDataChange);
}
Expand Down
Expand Up @@ -26,12 +26,12 @@ var tinyMCEProps = {
theme: "modern",
selector: "textarea",
menubar: 'false',
statusbar: true,
statusbar: false,
resize: "true",
plugins: [
"advlist anchor autolink lists link image charmap print hr anchor ",
"searchreplace wordcount visualchars fullscreen ",
"emoticons paste textcolor colorpicker textpattern validation dotimageclipboard compat3x"
"emoticons paste textcolor colorpicker textpattern validation dotimageclipboard"
],
block_formats: 'Paragraph=p;Header 1=h1;Header 2=h2;Header 3=h3;Header 4=h4;Header 5=h5;Pre=pre;Code=code;Remove Format=removeformat',

Expand Down

0 comments on commit 367cf23

Please sign in to comment.