views:

31

answers:

2

I have just implemented TinyMCE and it is working fine, except that the user must type something, even a space character, before being able to delete content.

Please tell me if you need more information.

A: 

It's a browser bug. There is a hacky workaround I've seen and used in the past; I can't verify it at the moment. If you call the following once the TinyMCE editing iframe has loaded, it may work:

// doc is a reference to the iframe's document
try {
    doc.execCommand("Undo", false, false);
} catch (ex) {}
Tim Down
A: 

Indeed it is a browser bug (almost FF). My workaround for this resets the design mode:

editor_instance = tinymce.EditorManager.getInstanceById(editor_id); //editor id needed here (ed.id)
editor_instance.getDoc().designMode = 'Off';
editor_instance.getDoc().designMode = 'On';
Thariama