Forums

Prevent TinyMCE from closing empty custom elements (2 posts)

  1. duoremix
    Member
    Posted 3 years ago #

    Hi everyone, I've been struggling last night with TinyMCE. I've added some custom elements by editing tiny_mce_config.php adding some elements to the $initArray:

    'extended_valid_elements' => 'fila[tip|val]',

    the thing is working... pretty much, because when I go to visual mode and then go back to html, the code is changed from

    <fila tip="this is tip" val="and this is val" />

    to

    <fila tip="this is tip" val="and this is val"></fila>

    is there any way to prevent this? I just want it to be an empty element like img or br. Thanks in advance.

  2. duoremix
    Member
    Posted 3 years ago #

    anyone...

Topic Closed

This topic has been closed to new replies.

About this Topic