How to enable closing tag in TinyMCE?

The source tags inside my video element must be closed so that the iPad does not start.

I type <source src="myVideo.m4v" />

TinyMCE continues to change it to <source src="myVideo.m4v" ></source> .

How can I stop him?

+4
source share
1 answer

See valid_elements and extended_valid_elements.

EDIT:

You can use the private setting in tinymce initialization:

 closed : /^(br|hr|input|meta|img|link|param|area)$/, // default 

to

 closed: /^(br|hr|input|meta|img|link|param|area|source)$/, 

If this does not work, I think you may need to change one line of code from the main tinymce code located in the .js editor on line 2666 (the latest version of miny mce) and expand the setting there with the original tag.

+3
source

All Articles