size.js 360 B

123456789101112
  1. import Parchment from 'parchment';
  2. let SizeClass = new Parchment.Attributor.Class('size', 'ql-size', {
  3. scope: Parchment.Scope.INLINE,
  4. whitelist: ['small', 'large', 'huge']
  5. });
  6. let SizeStyle = new Parchment.Attributor.Style('size', 'font-size', {
  7. scope: Parchment.Scope.INLINE,
  8. whitelist: ['10px', '18px', '32px']
  9. });
  10. export { SizeClass, SizeStyle };