You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be easily implemented with backward-compatibility by checking the type of the lineHeights property. If it is an Array, use the new order defined by the array. If it is a plain object use the existing for/in loop.
Actual behavior.
Instead, the drop-down shows the line heights in this order: 1, 2, 3, 1.15, 1.5 - The entries in the drop-down are sorted by the natural order of map elements in JavaScript. The order defined by the programmer is ignored.
Steps to reproduce the problem.
Simply use the configuration from "Expected behavior".
Editor version.
3.2.3
OS.
Windows 10
Browser.
All browsers
The text was updated successfully, but these errors were encountered:
Copied from #4143, which was closed and not reopened
Expected behavior.
Line heights in the drop-down should have the same order as in the lineHeights options/configuration. Example:
Should be shown as 1, 1.15, 1.5, 2, 3 in the drop-down. I'd suggest to change the configuration and use an array instead, like:
This could be easily implemented with backward-compatibility by checking the type of the lineHeights property. If it is an Array, use the new order defined by the array. If it is a plain object use the existing for/in loop.
Actual behavior.
Instead, the drop-down shows the line heights in this order: 1, 2, 3, 1.15, 1.5 - The entries in the drop-down are sorted by the natural order of map elements in JavaScript. The order defined by the programmer is ignored.
Steps to reproduce the problem.
Simply use the configuration from "Expected behavior".
Editor version.
3.2.3
OS.
Windows 10
Browser.
All browsers
The text was updated successfully, but these errors were encountered: