WordPress.org

Ready to get started?Download WordPress

Forums

More Fields
[resolved] Fix for "tinyMCE.settings is undefined" JavaScript bug (2 posts)

  1. saral
    Member
    Posted 1 year ago #

    If you add this line:

    if ( typeof( tinyMCE.settings ) == "undefined") {tinyMCE.settings = ""; }

    just above line 38

    if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function") {
    tinyMCE.settings.advanced += ",|,add_image,add_video,add_audio,add_media";
    tinyMCE.execCommand("mceAddControl", false, "%key%");
    }

    in "more-fields/more-fields-field-types.php" that fixes the JS "undefined" error. Apparently, this variable is not set if you are in html mode.

    TypeError: tinyMCE.settings is undefined

    tinyMCE.settings.advanced += ",|,add_image,add_video,add_audio,add_media";

    http://wordpress.org/extend/plugins/more-fields/

  2. uniquewebdevelopment
    Member
    Posted 1 year ago #

    Thanks, we haven't tried the above solution yet, but if you save the post in HTML view, everything seems to work again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.