Opened 12 years ago
Last modified 12 years ago
#9829 closed New Feature
Data and features activation based on configurations — at Version 3
Reported by: | Frederico Caldeira Knabben | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.1 RC |
Component: | General | Version: | |
Keywords: | Drupal | Cc: | wim.leers@… |
Description (last modified by )
The basic idea is introducing filtering that acts on the HTML accepte by the editor and the feature available in it.
- An as easy as possible way to configure the elements, attributes and transformations (e.g. <b> to <strong>) that the editor should support.
- By default, this configuration is defined by the plugins available in the editor. E.g. remove the link plugin and <a> will not any more be accepted.
- Developers can define this configuration. At that point, plugins, or part of their features, get enabled/disabled based on the configuration.
- All data input (especially paste) in the editor will be then filtered, based on the configuration. Transformations first and then elements/styles checks.
- Input data normalization will take place before filtering, bringing to an acceptable DOM structure.
- Special pasting plugins, like Paste from Word, will be reviewed to use the normalization+filtering system.
As a result only allowed HTML will reach the contents and only allowed plugins (or their features) will be enabled.
Change History (3)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 12 years ago by
Cc: | wim.leers@… added |
---|
comment:3 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Status: | new → confirmed |
I would +9000 if I could, but I'll just stick to a +1 :)
The first three bullets make total sense.
Can you clarify what: "filtering" in the fourth bullet and "input data normalization" in the fifth bullet entail precisely?
And why isn't "transformations" mentioned in the sixth bullet, just normalization & filtering? If a Word doc contains the equivalent of a
<b>
tag, it should also be possible to transform that to a<strong>
tag.Overall, it seems you have several concepts in CKEditor: "transformations" and "elements/styles checks" which together seem to form "filters", as well as "normalization".
I need to understand this before I can give useful feedback.
I apologize if this is to be found plain and clear somewhere in the CKEditor docs, but if you could reply with links, then I can be certain I'm reading the best docs. Thanks.