WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
Javascript error (7 posts)

  1. costyD
    Member
    Posted 3 years ago #

    Hi,
    I'm having a problem. The editor is not showing, it only highlights my text but the editor does not show up. I think it is because a javascript error. In firebug it throws this error: "Uncaught TypeError: undefined is not a function
    f.ready.heditor.js:1
    c.b.extend.eachjquery.min.js:33
    c.b.fn.b.eachjquery.min.js:26
    f.ready.heditor.js:1
    c.b.extend.eachjquery.min.js:33
    (anonymous function)editor.js:1
    c.b.extend.readyjquery.min.js:29
    c.u".

    Can someone pls help me.

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    What browser are you using?

    Add the following line to your wp-config.php file to get a better stack trace:

    define( 'SCRIPT_DEBUG', true );

    Also, eachjquery.min.js isn't a Front-end Editor file, so look in the source to see where it's coming from.

  3. costyD
    Member
    Posted 3 years ago #

    I'm getting this error:
    "fieldTypes[type] is not a constructor
    new fieldTypes[type]($el, type, filter, data);
    in editor.js line 839 "

  4. costyD
    Member
    Posted 3 years ago #

    I can edit the title of the posts but I can't edit the content.

  5. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Try upgrading to the new version (1.9.3).

  6. costyD
    Member
    Posted 3 years ago #

    After updating to 1.9.3 is acting the same but I get this error now:

    FrontEndEditor.fieldTypes[data.type] is not a constructor
    [Break On This Error] editor = new FrontEndEditor.fieldTypes[data.type]();
    on core.dev.js?ver=1.9.3 (line 154)

  7. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Are you using editable_post_meta() in your theme? If so, please paste the PHP code.

    If not, please paste the entire HTML source of the page on http://pastebin.com and add a link here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic