javascript - Pass options to QuillJS's module extensions through Quill.register -


i upload image aws s3 before add editor. inside imageblot because using insertembed in several places. example code qilljs team.

quill.register(imageblot);  export class imageblot extends blockembed {    static create(value) {     const node = super.create();     node.setattribute('alt', value.alt);     node.setattribute('src', value.url);     return node;   }    static value(node) {     return {       alt: node.getattribute('alt'),       url: node.getattribute('src')     };   } }  imageblot.blotname = 'image'; imageblot.tagname = 'img'; 

is possible add custom functions imageblot through quill.register or other way? using react , redux, hence actions have connected , can't imported.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -