Hi Hardboiled
Just tried your options from the TinyMCE forum:
style_formats : [
{title : 'Link PDF', selector : 'a', classes : 'Link-PDF' },
{title : 'Bold Class', selector : 'strong', classes : 'boldy' },
{title : 'Link Web', inline : 'a', classes : 'Link-Web'}
]
As far as I can tell, they are all behaving as expected.
1. I placed cursor in an existing anchor tag and selected
Link PDF
result: the
Link-PDF class was added to the anchor tag
2. I placed cursor in existing strong tag and selected
Bold Class
result: the
boldy class was added to the strong tag
3. I selected some text in a paragraph and applied the
Link Web style
result: an anchor tag was created with the
Link-Web class added.
Couple of things I have noticed about this incarnation of TinyMCE which may shed some light on your problem:
The path bar at the bottom of the editor does not display the classes applied to inline elements, so it might appear as though they are not being applied. Viewing the html source reveals all. (see attached image)
Also, I had to change the
Path to CSS file setting in the manager configuration for my custom style sheet to be picked up by TinyMCE.
From this:
/assets/templates/demotemplate/css/style_tinymce.css
To this:
assets/templates/demotemplate/css/style_tinymce.css
(notice the absence of the leading slash)
Hope this helps
G