Color button throws an error when activated on a content containing HTML comments #2296
Labels
browser:chrome
The issue can only be reproduced in the Chrome browser.
browser:edge
The issue can only be reproduced in the Edge (edgeHTML engine based) browser.
browser:firefox
The issue can only be reproduced in the Firefox browser.
status:confirmed
An issue confirmed by the development team.
support
An issue reported by a commercially licensed client.
target:minor
Any docs related issue that can be merged into a master or major branch.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
ctrl/cmd+a
).Expected result
Panel gets opened.
Actual result
Panel gets opened but JS Error gets thrown as well.
Message: element.getComputedStyle is not a function
URI:
/ckeditor/plugins/colorbutton/plugin.js
Line: 176
Code: currentColor = normalizeColor( element.getComputedStyle( type == 'back' ? 'background-color' : 'color' ) );
Other details
NOTE: Problem doesn't occur if we add Paste From Word (PFW) plugin to the build. While having PFW may seem mandatory when pasting content from MS applications, I don't think JS error should be thrown.
The text was updated successfully, but these errors were encountered: