Changes between Version 6 and Version 23 of Ticket #9829
- Timestamp:
- Jan 27, 2013, 10:56:17 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9829
-
Property
Status
changed from
confirmed
toassigned
- Property Keywords Drupal added
- Property Owner set to Piotrek Koszuliński
-
Property
Status
changed from
-
Ticket #9829 – Description
v6 v23 1 1 The basic idea is introducing filtering that acts on the HTML accepte by the editor and the feature available in it. 2 2 3 1. An as easy as possible way to configure the elements, attributes and transformations (e.g. <b> to <strong>) that the editor should support.3 1. ~~An as easy as possible way to configure the elements, attributes and transformations (e.g. <b> to <strong>) that the editor should support.~~ Note: transformations part were extracted to #9989. 4 4 5 2. 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.5 2. ~~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.~~ 6 6 7 3. Developers can define this configuration. At that point, plugins, or part of their features, get enabled/disabled based on the configuration.7 3. ~~Developers can define this configuration. At that point, plugins, or part of their features, get enabled/disabled based on the configuration.~~ Note: dialogs integration with allowed content filter was extracted to #9990. 8 8 9 4. All data input (especially paste) in the editor will be then filtered, based on the configuration. Transformations first and then elements/styles checks.9 4. ~~All data input (especially paste) in the editor will be then filtered, based on the configuration. Transformations first and then elements/styles checks.~~ 10 10 11 5. Input data normalization will take place before filtering, bringing to an acceptable DOM structure.11 5. ~~Input data normalization will take place before filtering, bringing to an acceptable DOM structure.~~ 12 12 13 6. Special pasting plugins, like Paste from Word, will be reviewed to use the normalization+filtering system.13 6. ~~Special pasting plugins, like Paste from Word, will be reviewed to use the normalization+filtering system.~~ Extracted to #9991. 14 14 15 7. Selection context participates on filtering as well. A <h1> editable should restrict the editor features accordingly. Another example, a selection inside <a> should not permit <a> elements being inserted.15 7. Selection context participates on filtering as well. A <h1> editable should restrict the editor features accordingly. ~~Another example, a selection inside <a> should not permit <a> elements being inserted.~~ **Status: 50%** 16 16 17 17 As a result only allowed HTML will reach the contents and only allowed plugins (or their features) will be enabled.