WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] Javascript error (13 posts)

  1. Bill Dennen
    Member
    Posted 3 years ago #

    Hi,

    I recently upgraded to the new version of front-end-editor, the one that uses CLEditor.

    Everything worked fine with the old version -- but now I get a Javascript error when I double-click on some content I'd like to edit:

    TypeError: Result of expression 'ai.controls' [null] is not an object.

    I am not sure what the problem is. Any ideas?

    Thanks!

  2. Bill Dennen
    Member
    Posted 3 years ago #

    I should add that the editing box never appears. After double-clicking on the content to edit, the content disappears. Using the error console in the browser, I see the Javascript error referred to above.

  3. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    What browser are you using (name and version)?

  4. Bill Dennen
    Member
    Posted 3 years ago #

    Thanks Scribu. I see that error in Safari/Chrome.

    On Firefox, the error is slightly different. "options.controls is null"

    I suspect a conflict with another plugin, but I have not yet been able to pinpoint it.

  5. Bill Dennen
    Member
    Posted 3 years ago #

    Chrome 11.0.696.34
    Safari 5.0.4
    Firefox 4.0

    and it's only a problem for "rich" fields from what I can tell.

  6. otozyon
    Member
    Posted 3 years ago #

    I am having the same problem with firefox 4.0b13pre and Chrome 10.0.648.133, both on ubuntu.

  7. otozyon
    Member
    Posted 3 years ago #

    It only concerns version 1.9.3 of the plugin. Version 1.9.2 works fine. And plugin interference doesn't seem to be the problem here, I deactivated all the other plugins but it still wouldn't work.

  8. Bill Dennen
    Member
    Posted 3 years ago #

    Disabling the plugin and re-enabling it has helped on two development installations I am running. The Javascript error is gone now.

  9. jnorion
    Member
    Posted 3 years ago #

    I'm having the same problem. WordPress is v3.1.1, FEE is v1.9.3.

    I have editing turned on for post title, post content, and comment content only. With the WYSIWYG editor turned on, highlighting and tool tips work normally, but when I double-click the post content it disappears and never gives me an editor. Inspecting with firebug shows that the editor is there, and populated properly, but has display: none; set inline at the element level. I am able to edit the post title and comment content as normal.

    If I turn the WYSIWYG editor off, it appears to work fine in all three places.

    I have no custom controls set on the WYSIWYG editor.

    I can replicate this in Firefox 4, Chrome 10.0.*, and Safari 5.04 (all latest versions), on OSX 10.6.

  10. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    I've been able to reproduce the error.

    Quick fix:

    1. Go to WP Admin -> Settings -> Front-end Editor -> Editor Panel box.
    2. Click on the "All" link.
    3. Click Save Changes.

  11. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    So, the problem was that the cleditor controls field was blank.

    This should no longer be a problem in the development version (1.9.4-alpha)

  12. Bill Dennen
    Member
    Posted 3 years ago #

    Thanks scribu!

  13. jnorion
    Member
    Posted 3 years ago #

    Ah, perfect. Added all controls back and it works normally now. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic