• Hi to all. Help me please.
    I need this design:

    <a href='/'>
    <div>some text</div>
    <div>some text2</div>
    <img src='/some_link'>
    </a>

    tag div in teg A.
    tinyMCE breaks it down in visual redactor.

    in file functions.php i put this:

    function make_mce_awesome( $init ) {
    
    $init['valid_children']="+a[*]";
    
        return $init;
    }
    
    add_filter('tiny_mce_before_init', 'make_mce_awesome');

    AND… nothing. It did not help. Help me!!!

    https://wordpress.org/plugins/tinymce-advanced/

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    Don’t think TinyMCE supports block tags inside links. It adds the same link inside each block.

Viewing 1 replies (of 1 total)
  • The topic ‘valid_children not work’ is closed to new replies.