• Resolved grounch

    (@grounch)


    Hi
    Little issue with the sub/superscript buttons in tinymce advanced.
    I added them and they show in editor, but when i use them the result is the opposite of expected: Subscript create O2 and Superscript create O(2 below the line).
    Tried to search in the plugin files but couldn’t achieve anything. A simple icon switch could do the trick but changing this in tinymce-advanced.php
    'tadv/sub' => array( 'name' => 'Subscript', 'icon' => '<span class="mce-ico mce-i-subscript"></span>' ),
    to
    'tadv/sub' => array( 'name' => 'Superscript', 'icon' => '<span class="mce-ico mce-i-superscript"></span>' ),
    Doesn’t change the icon at all even after cache clear.
    Could you have a look at this please.

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

    (@azaozz)

    Assuming this is about the subscript and superscript buttons in the (default) paragraph block.

    This seems to work properly here. The code above is correct: the “sub” part of tadv/sub stands for “subscript”, it points to the correct icon. However the icons added to these buttons are SVGs. Are you (perhaps) using an older version of TinyMCE Advanced? Or perhaps another plugin that adds the same buttons?

    Thread Starter grounch

    (@grounch)

    Problem solved, the sub sup tags behavior were modified somewhere in the css for no reason (always a pleasure to correct someone else’s work..).
    Anyways thanks for answer, nothing to blame on your plugin that works just fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subscript and superscript buttons inverted’ is closed to new replies.