0

I am trying to add a class to the containing p tag using the TinyMCE styles.

eg.

<p class="text-left">test</p>

However, when I select the style from the format drop-down list, an additional span is inserted

<p><span class="text-left">test</span></p>

I have tried by just clicking in on the text, and also highlighting the text and both insert the additional span.

How can I add a class to the p tag directly without switching to the source code editor?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.