Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35760, comment 27


Ignore:
Timestamp:
05/02/2017 09:59:08 PM (8 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35760, comment 27

    initial v1  
    55
    66It is a limitation. Ideally `wp.editor.initialize()` should run after all animations are done. There are couple of things at play:
    7 - Iframes cannot be moved in the DOM, or rather they are reloaded after they are moved. This is a browser security related limitation that breaks TinyMCE.
    8 - When initializing, TinyMCE gets the dimensions and position of the textarea to be able to replace it seamlessly. This doesn't work if the textarea is hidden. (There may be a workaround for that, will look further).
     7- Iframes cannot be moved in the DOM, or rather they are reloaded after they are moved. This is a browser security related limitation that may break TinyMCE.
     8- When initializing TinyMCE gets the dimensions and position of the textarea to be able to visually replace it. This doesn't work if the textarea is hidden (no calculated values). There may be a workaround for that, will look further.
    99
    1010In the "main" editor the textarea is shown initially but any text in it is set to `color: white;` to prevent the initial "flash" of the unstyled content. Can probably look at doing something similar.