Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30817, comment 2


Ignore:
Timestamp:
12/23/2014 12:15:19 AM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30817, comment 2

    initial v1  
    1 The `editor.focus();` is needed for IE. All versions of IE threat non-editable elements in the editor (and even block elements with height/width set) as separate DOM fragments when selected, i.e. when the thick diagonal border with resize handles is shown.
     1The `editor.focus();` is needed for IE. All versions of IE treat non-editable elements in the editor (and even block elements with height/width set) as separate DOM fragments when selected, i.e. when the thick diagonal border with resize handles is shown.
    22
    33As the wpView toolbar is inside the non-editable element, the focus is transferred there on clicking a button. We hide the IE border, but the focus remains inside that DOM fragment which is outside of the editor DOM. That causes range errors when the wpView gets updated.