Initial commit as of 2018-10-16
This commit is contained in:
11
assets/js/formats/background.js
Normal file
11
assets/js/formats/background.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import Parchment from 'parchment';
|
||||
import { ColorAttributor } from './color';
|
||||
|
||||
let BackgroundClass = new Parchment.Attributor.Class('background', 'ql-bg', {
|
||||
scope: Parchment.Scope.INLINE
|
||||
});
|
||||
let BackgroundStyle = new ColorAttributor('background', 'background-color', {
|
||||
scope: Parchment.Scope.INLINE
|
||||
});
|
||||
|
||||
export { BackgroundClass, BackgroundStyle };
|
||||
Reference in New Issue
Block a user