tinymce 5 fire error if insert newline after html element

127 views Asked by At

i try to use the html select element (<select size="1"><option>One</option></select>) in my tinymce editor.

It works but if i try to insert a newline after the select element with the enter key, i get an error in the console:

Uncaught TypeError: Cannot read property 'normalize' of null

Here is an example with jsfiddle

Why tinymce fire this error and how can i solve this?

1

There are 1 answers

0
Lostkeys On BEST ANSWER

TinyMCE does not support "live" form elements inside of the editor. If you want to add insert them as part of some sort of form builder for a front end you should make - in this case - the ` noneditable. See documentation for noneditable plugin here