Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #45461, comment 8


Ignore:
Timestamp:
01/15/2019 08:10:25 PM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45461, comment 8

    v1 v2  
    99Unfortunately I don't think this is fixable in core. Hidden elements in HTML don't have (browser calculated) dimensions. There is no way for TinyMCE (or any other JS) to get that hidden div's height simply because the browser doesn't know it. That can be done after it is shown.
    1010
    11 Your best bet is to initialize TinyMCE on the same event used to show that div, right after you remove the `display: none`. Alternatively you can try setting the editor height (in the init object) and then resize it after the div is shown.
     11Your best bet is to initialize TinyMCE on the same event used to show that div, right after you remove the `display: none`. Alternatively you can try setting the editor height (in the CSS) and then resize it after the div is shown.