Changes between Initial Version and Version 2 of Ticket #1639


Ignore:
Timestamp:
Dec 8, 2007, 10:24:43 AM (14 years ago)
Author:
Alfonso Martínez de Lizarrondo
Comment:

Adjusted the formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1639

    • Property Component changed from General to Core : Styles
  • Ticket #1639 – Description

    initial v2  
    11According to editor/_source/classes/fckstyle.js
    2 
     2{{{
    33 *      Overrides : '<element name>'|{
    44 *              Element : '<element name>',
     
    99 *                      '<style name>' : '<style value>'|/<style regex>/
    1010 *              },
     11}}}
    1112
    1213I 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{{{
    1315Attributes : { /^.*$/ : /^.*$/ }
     16}}}
    1417
    1518The 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.
    1619
    1720So if someone pastes in
     21{{{
    1822<span style="font-size: 20pt; font-family: Arial;">Hello world</span>
     23}}}
    1924I want it to be able to come out with:
     25{{{
    2026<span class="text">Hello world</span>
     27}}}
    2128if they change it to be marked as text. Now it gives
     29{{{
    2230<span class="text"><span style="font-size: 20pt; font-family: Arial;">Hello world</span></span>
     31}}}
    2332
    2433In this example I can't just set the attribute to override any style because I need to be able to override classes as well.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy