question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Draft JS Plugin Editor and IE11: Expected Object error

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomkelseycommented, Mar 13, 2017

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 👍

0reactions
stale[bot]commented, Sep 10, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found