Skip to content

Instantly share code, notes, and snippets.

@jacmaes
Created October 16, 2019 15:11
Show Gist options
  • Save jacmaes/14a609f2716b8ba7e7d54021c2cc4682 to your computer and use it in GitHub Desktop.
Save jacmaes/14a609f2716b8ba7e7d54021c2cc4682 to your computer and use it in GitHub Desktop.
remove inline styles from CKeditor #js #pw
// Place in site/modules/InputfieldCKEditor/config.js in Processwire to disallow inline styles.
CKEDITOR.editorConfig = function( config ) {
config.disallowedContent = '*{*}'; // All styles disallowed
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment