WordPress.org

Forums

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

  1. saral
    Member
    Posted 2 years 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 2 years 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

  • More Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.