does anybody know how to change functionality of button in wordpress content textarea of tinymce? There is a “u” button (underline) which makes text
<span style="text-decoration-line: underline;">text underlined</span>
what I need is change functionality of this button to put in content:
<u>text underlined</u>
I know that i need to change the tinymce init but where can i find it? What do i have to write there? I need this in my wordpress blog, so please help me 🙂
You can create your own shortcode to accomplish this. Add the following to
functions.php
and you may use [u] and [/u] around whatever should get<u>
-tags.Another solution, add this to
wysiwyg.php
aftertinyMCE.init {...
This should force the present button to serve you with the good old tags. Although this is not recommended since u-tags are deprecated. (Source: Underline format problem)