Support » Plugin: More Fields » [Plugin: More Fields] Fix for "tinyMCE.settings is undefined" JavaScript bug

  • Resolved saral

    (@saral)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: More Fields] Fix for "tinyMCE.settings is undefined" JavaScript bug’ is closed to new replies.