Note that there are some explanatory texts on larger screens.

plurals
  1. POTinyMCE - applying a style over bullets and multiple paragraphs applies the style to each bullet & para - how do I avoid?
    text
    copied!<p>I'm trying to use the theme_advanced_styles command within TinyMCE to add classes to selections of text within the TinyMCE editor. The problem is that if the paragraph contains bullets, then the style is applied throughout them (as well as to each individual paragraph).</p> <p>What I want is just for the entire selection I made to have the style class added to the start of it. Ie if my style class is 'expandCollapse' I want:</p> <pre><code>&lt;p class="expandCollapse"&gt;some content... some content... some content... some content... som content... some content... some content...&amp;nbsp; &lt;ul&gt; &lt;li&gt;asdsadsadsadsasda&lt;/li&gt; &lt;li&gt;asdsadsa&lt;/li&gt; &lt;li&gt;sada&lt;/li&gt; &lt;/ul&gt; asome content... some content... some content... some content... some content... some content... some content... some content...&amp;nbsp;&lt;/p&gt; </code></pre> <p>But what I get is:</p> <pre><code>&lt;p class="expandCollapse"&gt;some content... some content... some content... some content... some content... some content... some content...&amp;nbsp; &lt;ul&gt; &lt;li class="expandCollapse"&gt;asdsadsadsadsasda&lt;/li&gt; &lt;li class="expandCollapse"&gt;asdsadsa&lt;/li&gt; &lt;li class="expandCollapse"&gt;sada&lt;/li&gt; &lt;/ul&gt; &lt;/p&gt; &lt;p class="expandCollapse"&gt;asome content... some content... some content... some content... some content... some content... some content... some content...&amp;nbsp;&lt;/p&gt; </code></pre> <p>Any ideas anyone?!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload