|
|
Rank: Newbie
Joined: 10/8/2007 Posts: 2
|
Hi all, I have created some snippets that permit to insert some specific content in the tinyMCE Editor. One of them should write something like : Code: <blockquote class="Citation"> <span>Write here the blockquote</span> </blockquote>
The problem is that it writes <blockquote> and not <blockquote class="Citation"> in the HTML of the editor whereas if I try to do the same with a <div class="">, it works... Any of you guys have an idea ? (Sorry if my english is a bit poor...but...i'm french :))
|
|
Rank: Newbie
Joined: 10/8/2007 Posts: 2
|
Finally we have found the reason why applying class on blockquote tag was not allowed by TinyMCE. A file located at : config/tinyMceConfig.config is storing all the tags and their parameters allowed. Just look at the end of the file and you'll find Code:-blockquote[dir|style] , just add a class parameter. You should have now something like this : Code:-blockquote[class|dir|style] I hope to be understandable
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,410 Location: KY, USA
|
An update re: pasting from Word and being prompted to strip formatting... this DOES happen if you have Word 2007. It does not with Word 2003. I was pleasantly surprised after upgrading my version of Office. No idea why it didn't work with Word 2003. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,410 Location: KY, USA
|
An update regarding pasting content copied from Word into umbraco... The "how clean do you want?" screen the Niels mentioned earlier in this thread *does* appear when you past content... but only if you have Word2007. I upgraded recently and it just started working. Word 2003 doesn't show the dialog on pasting "dirty" content. No idea why the difference. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
Rank: Newbie
Joined: 8/21/2007 Posts: 16
|
hartvig wrote:Lefteris wrote: How can we get an H1 tag, with the last 2 words in a red span? How can we easily change the H1 tag to H2 etc? How...(!) We cant.
By total purpose. We won't. Period. Editors needs to focus on the text. The web isn't a playground and editors aren't designers - they're copywriters. That's why the emoticons are missing too. The snippet idea is excellent. Let's integrate that to 3.1. Cheers, Niels... Guys, let's not forget we implement CMS to empower people other than developers to manage content. No one wants to "play", they want to get their job done. If their job is as Search Engine expert, then h1 is their business, not yours. I sure would like to see an attitude where the default is what the authors think is best practice and open-mindedness (not to mention open interface) to allow implementors to apply it to their needs.
|
|
 Rank: Aficionado
Joined: 12/15/2006 Posts: 112
|
Noticed that if I used the updated umbraco.editorControls.dll I got errors when trying to publish. I only wanted to enable the template-snippet thing so: 1. Rolled umbraco.editorControls.dll back to the one I had from 3.0.5 2. Kept the updated editor_template.js. 3. Removed the additoinal "stylepicker2" from tinyMceConfig.config, but kept everything else. 4. Kept the template folder in tinymce/plugins 4. Updated tinymce/plugins/template.htm and hardcoded the script tag: Code: <script language="javascript" type="text/javascript" src="/scripts/mceTemplates.js"></script> Jobs a good'un!
___________________________________________________________________________________ Neil
|
|
|
Guest |