WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: TinyMCE Advanced] Add custom code (4 posts)

  1. Pepozzo
    Member
    Posted 2 years ago #

    Hello,

    i'm trying to add some code to this TinyMCE property:

    tinyMCE.init({
            ...
            theme_advanced_fonts : "Andale Mono=andale mono,times;"+
                    "Arial=arial,helvetica,sans-serif;"+
            ...
    });

    But where I can find that code?

    I can find a way to add some code at theme_advanced_fonts using the TinyMCE Advanced administration panel on WordPress back-end.

    Thanks!

  2. Andrew Ozz
    WordPress Dev
    Posted 2 years ago #

  3. Pepozzo
    Member
    Posted 2 years ago #

    Thank you so much!

    And if i would to add also the font style to the fonts select?

    For example, when i open the font list on the editor i can choose Arial, written with the Arial face. And when i write something on the textarea, it shows like Arial font correctly.

    But when i try to select my custom Font, it looks as Times New Roman on the back-end editor.

    How can i show custom font style correctly on the editor?

    PS: i've already added font-face property to my style.css

  4. Andrew Ozz
    WordPress Dev
    Posted 2 years ago #

    It's probably just cache issues. Quit the browser, start it again and delete the cache before testing this. However using a custom font may not work properly in the site's visitors browsers.

Topic Closed

This topic has been closed to new replies.

About this Topic