first commit
This commit is contained in:
10
public/assets/quill/formats/header.js
Normal file
10
public/assets/quill/formats/header.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import Block from '../blots/block.js';
|
||||
class Header extends Block {
|
||||
static blotName = 'header';
|
||||
static tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
|
||||
static formats(domNode) {
|
||||
return this.tagName.indexOf(domNode.tagName) + 1;
|
||||
}
|
||||
}
|
||||
export default Header;
|
||||
//# sourceMappingURL=header.js.map
|
||||
Reference in New Issue
Block a user