Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey! I want to add inline java script code into the the Ckeditor but unable to save the page. It is generating some firewall named "WatchGaurd" is blocking the page to be updated.
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedCKEditor isn't part of Drupal 7 core.
Comment #3
rakesht CreditAttribution: rakesht commentedYes I know but I am using Wysiwyg module and it is using CKEditor internally, if I am not making any mistake.
Comment #4
cilefen CreditAttribution: cilefen commentedThere are separate issue queues per product. I've moved this to the WYSIWYG queue.
Comment #5
TwoDI have no idea what "WatchGaurd" is, but it's not part of Wysiwyg module or the CKEditor library, and there is no "firewall" involved involved in Drupal.
For inline scripts to work you'll need to configure the editor to not filter out script tags, look into its Advanced Content Filter settings. To tweak editor settings generated by Wysiwyg you can implement hook_wysiwyg_editor_settings_alter() in a custom Drupal module. The editor may still hide scripts in WYSIWYG mode through, so either change to HTML mode and add/edit them there, or use a CKEditor plugin to handle scripts instead (implement hook_wysiwyg_plugin() to let Wysiwyg know about the plugin and let you enable it). Hook details are in wysiwyg.api.php.
I would need a lot more details about the eerrors you are getting to answer more specificlly.