Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
ckeditor.module
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
26 Jun 2013 at 10:03 UTC
Updated:
29 Jul 2014 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
wim leersI'm not normally in favor of RTBC'ing directly, but: this is a simple patch, and I'm one of the very few people who know this, and the only one who knows it in-depth. So, rather than waiting a week to get to RTBC, I'd rather get this simple, critical bugfix committed now.
Comment #2
quicksketchMakes sense to me. I'm not sure I could be much clearer than Wim's original post but here's a stab:
- We collect the list of tags from individual plugins' "allowedContent" setting via a hidden CKEditor instance on the page.
- However if you set the *global* "allowedContent" variable on the editor, the plugin settings are ignored.
- So before initializing our hidden CKEditor instance, we need to remove the global "allowedContent" setting so the individual plugin settings come through, allowing us to pull in an accurate tag list.
So that's what this simple patch does, simply unsets the allowedContent variable before initializing the editor. RTBC +1.
Comment #3
dries commentedCommitted to 8.x. Thanks!
Comment #4
wim leers.