wp-front-end-editor icon indicating copy to clipboard operation
wp-front-end-editor copied to clipboard

TypeError: editor.create_form is not a function

Open designsimply opened this issue 11 years ago • 1 comments

Turning on the "Edit all post fields at once" option causes the editor to break.

Steps to reproduce:

  1. Open a new WP 3.5.1 install and add/activate the Front-end Editor plugin
  2. Enable SCRIPT_DEBUG in wp-config.php
  3. Go to wp-admin > Settings > Front-end Editor
  4. Check the "Edit all post fields at once." option
  5. Click the "Save Changes" button
  6. Try editing any post from the front end
  • Expected: clicking "Edit" will enable the editor for all post field
  • Actual: clicking "Edit" does not open the editor and the following error can be found in the web console

Error: "TypeError: editor.create_form is not a function @ http://localhost/3.5.1/wp-content/plugins/front-end-editor/build/editor.js?ver=2.3:854"

Code ref: http://plugins.trac.wordpress.org/browser/front-end-editor/tags/2.3/build/editor.js#L854

error

Tested with WP 3.5.1 and Front-end Editor 2.3 using the Twenty Twelve theme and Firefox 22 on Mac OS X 10.8.3.

designsimply avatar Jul 03 '13 17:07 designsimply

Confirmed using rev 805dc4dc72b7595cd19e2015b9da3324e8fb9b98

In Chrome, the error looks like this:

Uncaught TypeError: Object #<thumbnail> has no method 'create_form' 

scribu avatar Jul 19 '13 23:07 scribu