-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
onload and setContents #446
Comments
Hi @mkhstar :) In previous versions, it was called in the "setTimeout" function and an error occurred when called before "onload".
iframe: contextEl.wysiwygFrame.addEventListener('load', function () {
util._setIframeDocument(this, options);
core._editorInit(false, options.value);
options.value = null;
}); not using iframe: core._editorInit(false, options.value);
options.value = null; So if you don't use "iframe", you can use "setContents" right away, but it won't work when you use the "iframe" option. |
The problem is in the latest version, editor.onload is never called. Please can you check that |
I will release new version at today |
Hi @JiHong88,
In the latest release of suneditor, the onload function is never been called and the setContents is been set without inserting in the onload function. Please can you check on this
The text was updated successfully, but these errors were encountered: