javascript - Prevent backspace from removing html in iFrame? -
To create all the browsers with the design key in the name of an IFrame, I have a paragraph tag, the beginning of the body Works great, and all the browers will keep a paragraph for starting a new line. Unfortunately, if the user backspace does not have any other plain text in IFrame, then it will backspace the paragraph and it will remove it.
Is there a way to do this that users can not backspace
tags? I can use jQuery or Javascript to fix it.
& lt; Iframe id = "editor" name = "editor" class = "theframe" & gt; & Lt; P & gt; & Lt; / P & gt; & Lt; / Iframe & gt;
Comments
Post a Comment