• Install Simple Fields pugin.
    Add repetable field and try add new line with texteditor.
    in browser console has error:

    Uncaught SyntaxError: Invalid regular expression: missing /

    this line is in tinymce-advanced.php in line 477.
    even if comment this line – next lines has same error.
    This is because symbol ‘ replaced by & #039;

    I think there is no fault of simple fields, because it works perfect when tiny mce disabled.

    What do you recommend?

    https://wordpress.org/plugins/tinymce-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    This error points to an inline script, i.e. <script> some JS here </script>. Not sure what would replace ' with &#039 in there, but that’s the bug.

    Seems all I can do to fix this is to stop outputting any inline scripts under the editor. Can try moving the existing script to a file in the next version but that’s not the right fix.

    Thread Starter ykushev

    (@ykushev)

    Thank You!
    maybe it is because the new editor is added to the page by ajax request?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ajax error’ is closed to new replies.