Quill.js: Making custom link formats -or- Custom formats with the same tag name
问题 I'm using Quill 1.0.0-rc.1 . How can I make several different types of link formats? I've made three different types of link formats that add a data-link-type attribute. When I create the links, it's fine. However, when I reload the content into the editor using pasteHTML , the last registered format wins since the tagName s are all 'A', and so all the data-link-type s get set to resource . So this: <p>These are the links: <a href="http://www.google.com" data-link-type="external">External</a>