Changes between Initial Version and Version 2 of Ticket #1639
- Timestamp:
- Dec 8, 2007, 10:24:43 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1639
-
Property
Component
changed from
General
toCore : Styles
-
Property
Component
changed from
-
Ticket #1639 – Description
initial v2 1 1 According to editor/_source/classes/fckstyle.js 2 2 {{{ 3 3 * Overrides : '<element name>'|{ 4 4 * Element : '<element name>', … … 9 9 * '<style name>' : '<style value>'|/<style regex>/ 10 10 * }, 11 }}} 11 12 12 13 I would like to request that the attributes section allow regular expressions for the attribute name. I would like to be able to override any span. I believe the attribute would need to allow something like: 14 {{{ 13 15 Attributes : { /^.*$/ : /^.*$/ } 16 }}} 14 17 15 18 The reason for this is I only want to use the span tags that I provide in the editor. When people paste text in from Word sometimes span tags are kept with style attributes. I am using span tags with class attributes. So if I want it to override any span tag with class and style attributes I don't see a way to do it in the editor right now. 16 19 17 20 So if someone pastes in 21 {{{ 18 22 <span style="font-size: 20pt; font-family: Arial;">Hello world</span> 23 }}} 19 24 I want it to be able to come out with: 25 {{{ 20 26 <span class="text">Hello world</span> 27 }}} 21 28 if they change it to be marked as text. Now it gives 29 {{{ 22 30 <span class="text"><span style="font-size: 20pt; font-family: Arial;">Hello world</span></span> 31 }}} 23 32 24 33 In this example I can't just set the attribute to override any style because I need to be able to override classes as well.