#22124 closed defect (bug) (fixed)
Unable to switch from TinyMCE to Text Editor after inserting full size image
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | koopersmith, mdhansen@… |
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:
- While on the visual editor click Upload/Insert Media
- Upload image, select Full Size and click insert.
- 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).
Attachments (1)
Change History (11)
comment:1
markoheijnen — 7 months ago
- Cc koopersmith added
- Milestone changed from Awaiting Review to 3.5
- Version set to trunk
comment:2
SergeyBiryukov — 7 months ago
- Description modified (diff)
comment:3
SergeyBiryukov — 7 months ago
- Component changed from General to Media
comment:4
MikeHansenMe — 7 months ago
#22120 was marked as a duplicate.
- Resolution set to fixed
- Status changed from new to closed
For some reason it looks like the whole file has been changed, but I actually changed only line 393-401.
- Keywords has-patch added
- Resolution fixed deleted
- Status changed from closed to reopened
comment:7
MikeHansenMe — 7 months ago
- Cc mdhansen@… added
comment:8
koopersmith — 7 months ago
- Owner set to koopersmith
- Resolution set to fixed
- Status changed from reopened to closed
In [22140]:
comment:9
koopersmith — 7 months ago
#22032 was marked as a duplicate.
comment:10
koopersmith — 7 months ago
#22032 was marked as a duplicate.
Note: See
TracTickets for help on using
tickets.

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