We are using RadEditor in our article management system.
I can apply a CSS class to a paragraph by using the ApplyClass tool (which will ad a <span class="className"> inside the paragraph. However, if i tried to select multiple paragraphs, it also wrap the content with the <span> tag for every paragraph. What I want to achieve is to have a <div class="className"> wrapping those multiple paragraphs. Can this be achieved?
e.g.
ORIGINAL:
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
OUTPUT:
<p class="className">This is the first paragraph.</p>
<p><span class="className">This is the second paragraph</span></p>
<p><span class="className">This is the third paragraph</span></p>
<ol>
<li><span class="className">This is the first list item.</span></li>
<li><span class="className">This is the second list item.</span></li>
</ol>
EXPECTED OUTPUT:
<div class="className">
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
</div>
I can apply a CSS class to a paragraph by using the ApplyClass tool (which will ad a <span class="className"> inside the paragraph. However, if i tried to select multiple paragraphs, it also wrap the content with the <span> tag for every paragraph. What I want to achieve is to have a <div class="className"> wrapping those multiple paragraphs. Can this be achieved?
e.g.
ORIGINAL:
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
OUTPUT:
<p class="className">This is the first paragraph.</p>
<p><span class="className">This is the second paragraph</span></p>
<p><span class="className">This is the third paragraph</span></p>
<ol>
<li><span class="className">This is the first list item.</span></li>
<li><span class="className">This is the second list item.</span></li>
</ol>
EXPECTED OUTPUT:
<div class="className">
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
</div>