Using Markdown sounds like a good alternative, but I read somewhere that he has problems with built-in iframes. If this works for you, then it's fluffy. I have not tested it yet.
However, what you can do if you do not want to give up TinyMCE is the following.
tinymce.activeEditor.schema.setValidElements('*[*]')
This tells the active editor that all elements are now valid.
Unfortunately, as soon as you close and reopen the editing window, the just launched editor will split them again, so I wrote a little Greasemonkey script that automatically sets the valid_elements values ββwhen the editor is initialized.
// ==UserScript== // @name Lift TinyMCE tag restrictions // @namespace http://claviger.net // @include *.tumblr.com/* // @version 1 // @grant none // ==/UserScript== if (typeof tinyMCE !== 'undefined') { tinyMCE.onAddEditor.add(function(mgr, ed) { ed.settings.valid_elements = '*[*]'; }); }
This works very well for me, but I think that in rare cases a race condition occurs between the Greasemonkey script and the actual TinyMCE initialization. I suggest that the latter should sometimes run to the first and prevent my little hacking. This has not happened the last twenty or so times when I reloaded the page, and if that happens, just reload without saving. (Maybe someone has an idea how to avoid this?)
By the way, the class attribute does not seem to be shared, so as another alternative, you can define something like .alignleft in your blog theme and use it for images. Then it will not look much in TinyMCE, but a visitor or blog will see a beautiful version.
Denis drescher
source share