CssClass use <div> instead of <span>

  •  11-25-2008, 1:20 PM

    CssClass use <div> instead of <span>

    I'm wondering if it's possible to configure CuteEditor to use a <div> tag instead of a <span> tag when selecting a custom CssClass.
     
    For example, I created a custom class, and when the text is selected to use that class from the drop down, the following code is generated <span class="className">Text</span>
     
    I need this to be <div class="className">Text</div>
     
    Is it possible to change this? The reason is, the users are pasting text from Word, and it's pasting <span> tags with styles, and I'm using RegEx to strip the span tags, but allowing them to set classes on text, but my RegEx strips the <span> tags, thus, stripping the classes set by the user.
     
    Any help is appreciated.
View Complete Thread