WordPress.org

Make WordPress Core

Opened 19 months ago

Last modified 18 months ago

#22124 closed defect (bug)

Unable to switch from TinyMCE to Text Editor after inserting full size image — at Version 2

Reported by: raggedrobins Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Once I insert a full size image from the old media uploader, I'm unable to switch to Text editor. Or, I am able to switch but I switch back to visual and then I'm stuck there.

Steps taken:

  1. While on the visual editor click Upload/Insert Media
  1. Upload image, select Full Size and click insert.
  1. Try to switch to Text Editor.

I made a quick screencast. http://www.screencast.com/t/pAuCqCu7ik73

It's also throwing a span tag underneath the image: <span id="__caret">_</span> (this is appearing underneath all sizes of images).

Change History (2)

comment:1 markoheijnen19 months ago

  • Cc koopersmith added
  • Milestone changed from Awaiting Review to 3.5
  • Version set to trunk

Uncaught TypeError: Cannot read property 'width' of undefined mce-view.js:393
wp.media.string.image mce-view.js:393
mceview.add.text mce-view.js:432
(anonymous function) mce-view.js:343
wp.mce.view.toText mce-view.js:336
(anonymous function) editor_plugin_src.js:62
tinymce.create.dispatch tiny_mce.js:1
(anonymous function) tiny_mce.js:1
tinymce.create.dispatch tiny_mce.js:1
serialize tiny_mce.js:1
k.create.getContent tiny_mce.js:1
k.create.save tiny_mce.js:1
(anonymous function) tiny_mce.js:1
c.each tiny_mce.js:1
j.EditorManager.d.triggerSave tiny_mce.js:1
autosave autosave.js:288
$.schedule.func autosave.js:6
trampoline jquery.schedule.js:32

comment:2 SergeyBiryukov19 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.