4e50fea2474a9a1e8f1d0ac6cafef4adf1299099f5a0ff8de4a71f371ece6fde90f328c4a1dc0f2d02cf8135e6f232de84261df27fba5699bdf5607361a416 478 B

1234567891011121314
  1. import { ClassAttributor, Scope, StyleAttributor } from 'parchment';
  2. const config = {
  3. scope: Scope.INLINE,
  4. whitelist: ['serif', 'monospace']
  5. };
  6. const FontClass = new ClassAttributor('font', 'ql-font', config);
  7. class FontStyleAttributor extends StyleAttributor {
  8. value(node) {
  9. return super.value(node).replace(/["']/g, '');
  10. }
  11. }
  12. const FontStyle = new FontStyleAttributor('font', 'font-family', config);
  13. export { FontStyle, FontClass };
  14. //# sourceMappingURL=font.js.map