-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Error when calling updateContents() method #132
Comments
The docs are a bit misleading in that in the parameters a Delta object is expected but the examples it takes a standard js object. I made a change to take either. I did make some other changes on develop so will need make the necessary documentation changes before making a new release with this fix. Thank you for reporting this. |
Thanks, but it still doesn't work on my side, and it throws some Error below: "Uncaught TypeError: undefined is not a function quill.js:12928" When I look into the source, it looks like the function isIdentity() is not defined. =====quill source==== could you please check? thanks, |
It seems to be working on the latest version. Is this what you are doing: http://jsfiddle.net/uA5V8/. |
Thanks a lot. I made something wrong, it works. Appreciate for your response. Eric |
Hi there,
The following JS code throw exception and the message is:
Uncaught TypeError: undefined is not a function quill.js:12702
Editor.applyDelta quill.js:12702
Quill.updateContents quill.js:15658
...
====JS code====
var d = {
startLength: 1,
endLength: 2,
ops: [{
value: 'g',
attributes: {}
}, {
start: 0,
end: 1,
attributes: {}
}]
};
editor.updateContents(d);
====JS code====
is there anything wrong with my code?
Thanks,
Eric
The text was updated successfully, but these errors were encountered: