I've tried associating the TinyMCE control with a CSS sheet, and creating the appropriate ".info" style. That automatically creates a span, not a div, which I could live with by tweaking the CSS. However, the internal elements also get the class appended to them. Is there any way to use TinyMCE to provide non-technical users with structured HTML snippets without forcing those users to get more technical than they can handle?
How's about leveraging the tinymce template plugin you could then insert your default html as above, allowing your editor to then just change the default text as they require?
Creating styled elements in TinyMCE
I'm looking to allow writers to create the following snippet using TinyMCE without resorting to the HTML button:
I've tried associating the TinyMCE control with a CSS sheet, and creating the appropriate ".info" style. That automatically creates a span, not a div, which I could live with by tweaking the CSS. However, the internal elements also get the class appended to them. Is there any way to use TinyMCE to provide non-technical users with structured HTML snippets without forcing those users to get more technical than they can handle?
Are you able to code the <div> into the user control / xslt / razor when outputting the data?
That would remove the "class" assignment issue and make this possible.
Cheers, Nigel
http://our.umbraco.org/wiki/how-tos/enabling-the-'template'-plugin-for-tinymce
How's about leveraging the tinymce template plugin you could then insert your default html as above, allowing your editor to then just change the default text as they require?
Hi Andre,
You might also want to have a look at the widget dropper package: http://our.umbraco.org/projects/website-utilities/widget-dropper
I have not used it myself, but it seems to map more or less with what you need.
Cheers,
Michael.
is working on a reply...