sitecore6 - Sitecore - Rich Text Editor - Create new Paragraphs with class attribute -
i've managed create new paragraph style sitecore rich editor creating new item under: /sitecore/system/settings/html editor profiles/rich text default/paragraphs/
the paragrah value
issue: first time when select section on rte , click new selection wraps tag below:
<p class="something> paragrah...... </p>
however when again select same paragraph , select "normal" style above doesn't replace with:
<p>paragraph..... </p>
if reverse above doesn't work. reason rte seems think
<p class="something> same <p>`
could me whether bug within rte/sitecore?
i tried , got similar results able resolve think perhaps missing piece of you're looking for.
i created new paragraph test class in core db called test. opened rte , applied test class. after, saw had applied class yours above:
<p class="test">this test</p>
i tried apply 'normal' class on , didn't change result. however, right next paragraph classes dropdown, you'll see dropdown next shows applied class paragraph. if use dropdown, lets 'clear class' on element, getting normal p tag.
for kicks, went core , added new class called test2. gave new classname called test2. in editor, applied 'test' first , again gave me:
<p class="test">this test</p>
but when applied 'test2' on it, got this:
<p class="test2">this test</p>
so think confusion no 'new' class being applied, , it's not stripping function, applying function. clear class, you'll have use 'clear class' option in drop down on left.
Comments
Post a Comment