a-ok Posted January 30, 2023 Share Posted January 30, 2023 Can anyone help me to allow <script></script> tags in CKEditor? It's for an inline cookie consent that needs to be added within a ckeditor text field. I can't figure it out at all from either PW docs or CKEditor docs. Thanks. Link to comment Share on other sites More sharing options...
a-ok Posted January 30, 2023 Author Share Posted January 30, 2023 I've added the following to the config.js file, which works, but it then overrides any settings in the Processwire UI... CKEDITOR.editorConfig = function( config ) { config.allowedContent = true; config.allowedContent = { script:true }; }; Link to comment Share on other sites More sharing options...
BitPoet Posted January 30, 2023 Share Posted January 30, 2023 Can't you use the "Extra Allowed Content" line in the field's settings? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now