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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -