background.js 353 B

1234567891011
  1. import Parchment from 'parchment';
  2. import { ColorAttributor } from './color';
  3. let BackgroundClass = new Parchment.Attributor.Class('background', 'ql-bg', {
  4. scope: Parchment.Scope.INLINE
  5. });
  6. let BackgroundStyle = new ColorAttributor('background', 'background-color', {
  7. scope: Parchment.Scope.INLINE
  8. });
  9. export { BackgroundClass, BackgroundStyle };