Tinymce, textarea in textarea editor

I am using TinyMCE.

If I insert another texaria into my text area (editor), tinymce considers that the closing tag of this matters, and therefore it closes the editor. All code can be found there after an external editor ...

Do you have any ideas?

The code below works:

<textarea id="elm1" name="elm1"> <input type="text" value="okokokok"/> </textarea> 

Below code does not work:

 <textarea id="elm1" name="elm1"> <textarea>Blablablabla</textarea> <input type="text" value="okokokok"/> </textarea> 

Here "<input type="text" value="okokokok"/></textarea>" will find an external editor ...

Do you understand my problem?

+4
source share
2 answers

Remove all textarea element identifier attributes.
This will fix the appearance of the text field inside the editor.

0
source

I had the same problem, instead of removing id attr, give them id value, don't use "id" less textarea. he works in tinymce 4.

a <textarea id="try">textarea in </textarea> from a text field

0
source

Source: https://habr.com/ru/post/1441811/


All Articles