#31998 closed defect (bug) (fixed)
wp.mce.views with focus causes JS errors when toggling visual editor view
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | TinyMCE | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
As reported by @maniu in https://wordpress.org/support/topic/wpmceviews-update-switching-visualtextvisual-causes-appendchild-js-error
When switching views between visual and text mode in the post editor the visual editor will fail to render upon toggle if a view was currently active/had focus when you moved away from the visual mode.
In previous versions we appear to move the focus in the editor to the first point before the view element when we change views.
Attachments (1)
Change History (10)
#1
@
9 years ago
- Summary changed from wp.mce.views with focus causes JS errors when toggeling visual editor view to wp.mce.views with focus causes JS errors when toggling visual editor view
#2
@
9 years ago
- Component changed from Editor to TinyMCE
- Milestone changed from Awaiting Review to 4.2
#3
@
9 years ago
In 31998.patch:
- Remove selected views when inserting content but not when loading all content.
- Remove the ref. to the selected view node on resetting the views.
This ticket was mentioned in Slack in #core-editor by azaozz. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
Caused by trying to remove a view that doesn't exist any more as we reload the editor content (and recreate all views) on switching Text => Visual.