I just came up with a clever little stupid hack. Not sure if it works in IE or outside of wordpress but who cares. Or I don't or something
tinyMCE.execCommand( 'mceInsertContent', false, mytext+' ');
tinyMCE.execCommand( 'mceInsertContent', false, ' ');
Replace mytext with your text to be inserted.
There has to be on nbsp(thats what the means) stuck to the end of the inserted text, and then you have to make a seperate tinyMCE.execCommand to insert another
You can replace the first with (space) but the second one seems to need the
If anyone is wondering what the and are, they are html codes
ps... Is there only one guy who makes this program? Because that seems a little crazy considering the possibly 100 million or more users when you think count wordpress and everyone else.
Last edited by mikeL (2008-03-25 09:56:30)