Skip to content

Commit

Permalink
Merge pull request #54 from ProWorksCorporation/v13/main
Browse files Browse the repository at this point in the history
V13/main
  • Loading branch information
protherj authored Sep 11, 2024
2 parents 0725dbb + 38c3507 commit c310b33
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,6 @@
////////////////////////////////
var standardConfigKeys = _.keys(standardConfig);

// Override with prevalue custom config if present
if (editorConfig.customConfig) {
Utilities.extend(standardConfig, editorConfig.customConfig);
}

// Override with prevalue plugins if present
if (editorConfig.plugins) {
standardConfig.plugins = _.union(standardConfig.plugins, editorConfig.plugins);
Expand Down Expand Up @@ -275,6 +270,11 @@
Utilities.extend(standardConfig, window.tinymcepremium.Config.custom_user_config);
}

// Override with prevalue custom config if present
if (editorConfig.customConfig) {
Utilities.extend(standardConfig, editorConfig.customConfig);
}

if (standardConfig.plugins.indexOf("powerpaste")) {
// remove the "paste" plugin per TinyMCE docs
standardConfig.plugins = _.without(standardConfig.plugins, "paste");
Expand Down

0 comments on commit c310b33

Please sign in to comment.