Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi Guys,
We're having an issue with rich text editing via TinyMCE. If I go to apply a style to a block of text in the editor, it gets applied as expected. But when I go to apply a different style that should override the original style, things go a little haywire. As you can see, we've defined a set of styles as "h1", "h2", "h3". When I apply "h3" to a section, it wraps the text in a . When I apply "h2" it appends the header2 class like:
afforded the same full scope collective bargaining rights as workers in the private sector.
Hmm. Maybe I can fix it by selecting that section and applying "Standard Text":
afforded the same full scope collective bargaining rights as workers in the private sector
It seems like the only way to resolve the issue is to click on the HTML button and clear out all the tags so that TinyMCE can make a fresh start. I guess the question is, *adding* style declarations here is pretty easy, but how do you make sure they get *removed* when the user selects a different style?
Thanks in advance for any advice...
--Ian