forked from zhurui/management
13 lines
438 B
JavaScript
13 lines
438 B
JavaScript
import Parchment from 'parchment';
|
|
|
|
let config = {
|
|
scope: Parchment.Scope.BLOCK,
|
|
whitelist: ['rtl']
|
|
};
|
|
|
|
let DirectionAttribute = new Parchment.Attributor.Attribute('direction', 'dir', config);
|
|
let DirectionClass = new Parchment.Attributor.Class('direction', 'ql-direction', config);
|
|
let DirectionStyle = new Parchment.Attributor.Style('direction', 'direction', config);
|
|
|
|
export { DirectionAttribute, DirectionClass, DirectionStyle };
|