TinyMCE Adds Dynamic Custom Tags

I am trying to switch to TinyMCE from CKEDITOR, and I need to be able to write in the original user dynamic tags ... for example: hightlight-123, where the highlight is static, but the number changes ... I looked in TinyMCE docs, but could not find a way add custom elements with a regular expression or start with a string.

How can I change my configuration to custom tags with some kind of regex?

here is the important part of my tinyMCE configuration:

{ extended_valid_elements: 'highlight[style]', custom_elements: 'highlight' } 
+5
source share

All Articles