We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The onEditorChange was not triggered when I click a align button of this module,
The text was updated successfully, but these errors were encountered:
You need an ovveride default quil image format method #10 (comment)
var BaseImageFormat = Quill.import('formats/image'); const ImageFormatAttributesList = [ 'alt', 'height', 'width', 'style' ]; class ImageFormat extends BaseImageFormat { static formats(domNode) { return ImageFormatAttributesList.reduce(function(formats, attribute) { if (domNode.hasAttribute(attribute)) { formats[attribute] = domNode.getAttribute(attribute); } return formats; }, {}); } format(name, value) { if (ImageFormatAttributesList.indexOf(name) > -1) { if (value) { this.domNode.setAttribute(name, value); } else { this.domNode.removeAttribute(name); } } else { super.format(name, value); } } } Quill.register(ImageFormat, true);
Sorry, something went wrong.
No branches or pull requests
The onEditorChange was not triggered when I click a align button of this module,
The text was updated successfully, but these errors were encountered: