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/background.js
2018-10-16 18:28:42 +02:00

12 lines
353 B
JavaScript

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 };