WYSIWYG rich-text has no Heading support

Support General WYSIWYG rich-text has no Heading support

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2672
    academyadminacademyadmin
    Participant

    Hello,
    I was trying to use the rich text WYSIWYG editor and I found there is no way to choose headings.. i.e.:
    Heading 1
    Heading 2
    Heading 3...
    So basically if the users want to use heading 2, they have to go into "text" mode of the editor and write <h2>some heading text</h2>...
    Is there a way to add that functionality to the editor?
    Thank you!

    #2677
    Anh TranAnh Tran
    Keymaster

    By default, the wysiwyg has everything the default editor has. You need to click to the "Toolbar Toggle" button to show the format selection dropdown, like this:

    http://prntscr.com/aoqf1k

    #2687
    academyadminacademyadmin
    Participant

    Hi, thank you. but...
    This is my code and this is my editor:
    http://prntscr.com/ap4bzu
    What am I missing?

    #2689
    Anh TranAnh Tran
    Keymaster

    Ah, you set 'teeny' => true which shows the minimal UI for the editor. Removing it resolves this problem.

    #2694
    academyadminacademyadmin
    Participant

    Thank you for your answer, it solved my problem.
    BTW,
    I got the code for using this type of metabox from your demo.php file here:
    https://github.com/rilwis/meta-box/tree/master/demo
    Maybe you should consider removing this setting from that file as well.
    Thanks again

    #2696
    Anh TranAnh Tran
    Keymaster

    Ah, the demo just shows you lots of option that you can adjust for your real project :). Glad that it works for you now.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WYSIWYG rich-text has no Heading support’ is closed to new replies.