Closed (duplicate)
Project:
Wysiwyg
Version:
7.x-2.1
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2012 at 15:55 UTC
Updated:
18 Feb 2021 at 21:54 UTC
Jump to comment: Most recent
The Teaser Break wysiwyg plugin strips <script> tags from the content when enabled. I'm using the CKEditor with the Wysiwyg module.
I've confirmed that the script tags are not stripped by an output filter or by the CKEditor itself. Disabling the Teaser Break button for my Wysiwyg profile (in /admin/config/content/wysiwyg) solves the issue for me.
This appears to be a side-effect of the Teaser Break plugin wrapping the content in a new jQuery element in the detach handler (in plugins/break/break.js).
Comments
Comment #1
twodThis is part of a larger problem caused by passing the content to the browser to parse it into a DOM, and then using innerHTML to get a serialized version back out again. Please follow #510552: Invalid XHTML: missing trailing slashes, absolute urls and uppercase tags for updates.
Comment #2
kruser commented8 years later and I just encountered the same issue :) I can't believe the fix was to disable the Teaser Break, and it worked.