Draft JS Plugin Editor and IE11: Expected Object error
See original GitHub issueHi,
Using the Draft JS Plugin Editor I was getting an “Expected Object” error in IE11.
I fixed this by replacing every instance of a (for x of y)
loop with a forEach
loop in /Editor/index.js
As per: https://github.com/tomkelsey/draft-js-plugins-editor/blob/master/src/Editor/index.js
Due to how the project is structured I haven’t had time to shape this into a PR but hopefully it’s useful for anyone else that comes across this issue.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:13 (7 by maintainers)
Top Results From Across the Web
DraftJS with Internet Explorer - javascript
Rendering DraftJS Editor on IE11 gives the following error - Invariant Violation: PluginEditor.render(): A valid ReactComponent must be ...
Read more >Issues and Pitfalls
This article addresses some known issues with the Draft editor framework, as well as some common pitfalls that we have encountered while ...
Read more >draft-js-autolist-plugin
Automatically create ordered/unordered lists in draft-js as you type. Latest version: 3.0.0, last published: 2 years ago.
Read more >"Message: Object expected" Javascript error
It's unsupported and insecure. You may be seeing this error message because the JavaScript on the page won't work with older versions of ......
Read more >Fixes integrated in HCL Digital Experience 8.5.0.0, 9.0 and ...
JAVASCRIPT ERROR OCCURS WHEN LOADING THE SPELL CHECKER COMPONENT ON CK EDITOR. PI85664. WORKFLOW AND SECURITY CONTROL CHECKER MODULE DOES NOT WORK WHEN...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys,
Just jumping back in and noticed the linting config extends airbnb’s - I’m not entirely sure as to their rationale but they seem to recommend not using for-of loops:
https://github.com/airbnb/javascript#iterators-and-generators
I don’t know how extensively they’re used in the codebase but it could be worth removing them rather than adding a caveat. Either way, great job with these plugins @nikgraf 👍
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.