Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/assets/js/formats/header.js
2018-10-16 18:28:42 +02:00

14 lines
263 B
JavaScript

import Block from '../blots/block';
class Header extends Block {
static formats(domNode) {
return this.tagName.indexOf(domNode.tagName) + 1;
}
}
Header.blotName = 'header';
Header.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
export default Header;