-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Milestone
Description
Describe the bug
The function/constructor DOMRect, used in dom.js (line 160), does not work in Chrome 56, IE 11 and Microsoft Edge, but works in FireFox and Safari.

To Reproduce
- Add the Table block
- Open the command line
- Click on an empty table cell (you should get an error in the console for the browsers mentioned above).
Expected behavior
When clicking on an empty table cell within the Table block, and error should not occur.
Possible Solution
Since DOMRect works only in some browsers, a polyfill or mock DOMRect function should be created or used in place of it. TinyMCE provides it's own function to create Rectangles without issue.
import tinymce from 'tinymce';
var rectangle = tinymce.geom.Rect.create( x, y, width, height );Relate Issues
#6666
Metadata
Metadata
Assignees
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
