Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to SetContents #267

Closed
MRB60 opened this issue Mar 19, 2020 · 1 comment
Closed

Unable to SetContents #267

MRB60 opened this issue Mar 19, 2020 · 1 comment
Labels
Milestone

Comments

@MRB60
Copy link

MRB60 commented Mar 19, 2020

I get an empty editor area after SetContents. Suneditor v2.27.0. Also tried with a simple string. No success.
It could be that I have old incompatible config settings and if so, it would be great if someone can point out what has changed between 2.26.0 and 2.27.0.
Code:

this.suneditor = SUNEDITOR.create((document.getElementById('suneditor') || 'suneditor'), this.editorconfig);
this.suneditor.setContents(HTMLeditorcontent);
// register event handler so we can track if data is changed
this.datachanged = false;
this.suneditor.core.history.reset(true); // history stack reset

@JiHong88
Copy link
Owner

The 2.27.1 version has been updated.
If there is an issue, please register as a new issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants