quill.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import Quill from './core';
  2. import { AlignClass, AlignStyle } from './formats/align';
  3. import { DirectionAttribute, DirectionClass, DirectionStyle } from './formats/direction';
  4. import { IndentClass as Indent } from './formats/indent';
  5. import Blockquote from './formats/blockquote';
  6. import Header from './formats/header';
  7. import List, { ListItem } from './formats/list';
  8. import { BackgroundClass, BackgroundStyle } from './formats/background';
  9. import { ColorClass, ColorStyle } from './formats/color';
  10. import { FontClass, FontStyle } from './formats/font';
  11. import { SizeClass, SizeStyle } from './formats/size';
  12. import Bold from './formats/bold';
  13. import Italic from './formats/italic';
  14. import Link from './formats/link';
  15. import Script from './formats/script';
  16. import Strike from './formats/strike';
  17. import Underline from './formats/underline';
  18. import Image from './formats/image';
  19. import Video from './formats/video';
  20. import CodeBlock, { Code as InlineCode } from './formats/code';
  21. import Formula from './modules/formula';
  22. import Syntax from './modules/syntax';
  23. import Toolbar from './modules/toolbar';
  24. import Icons from './ui/icons';
  25. import Picker from './ui/picker';
  26. import ColorPicker from './ui/color-picker';
  27. import IconPicker from './ui/icon-picker';
  28. import Tooltip from './ui/tooltip';
  29. import BubbleTheme from './themes/bubble';
  30. import SnowTheme from './themes/snow';
  31. Quill.register({
  32. 'attributors/attribute/direction': DirectionAttribute,
  33. 'attributors/class/align': AlignClass,
  34. 'attributors/class/background': BackgroundClass,
  35. 'attributors/class/color': ColorClass,
  36. 'attributors/class/direction': DirectionClass,
  37. 'attributors/class/font': FontClass,
  38. 'attributors/class/size': SizeClass,
  39. 'attributors/style/align': AlignStyle,
  40. 'attributors/style/background': BackgroundStyle,
  41. 'attributors/style/color': ColorStyle,
  42. 'attributors/style/direction': DirectionStyle,
  43. 'attributors/style/font': FontStyle,
  44. 'attributors/style/size': SizeStyle
  45. }, true);
  46. Quill.register({
  47. 'formats/align': AlignClass,
  48. 'formats/direction': DirectionClass,
  49. 'formats/indent': Indent,
  50. 'formats/background': BackgroundStyle,
  51. 'formats/color': ColorStyle,
  52. 'formats/font': FontClass,
  53. 'formats/size': SizeClass,
  54. 'formats/blockquote': Blockquote,
  55. 'formats/code-block': CodeBlock,
  56. 'formats/header': Header,
  57. 'formats/list': List,
  58. 'formats/bold': Bold,
  59. 'formats/code': InlineCode,
  60. 'formats/italic': Italic,
  61. 'formats/link': Link,
  62. 'formats/script': Script,
  63. 'formats/strike': Strike,
  64. 'formats/underline': Underline,
  65. 'formats/image': Image,
  66. 'formats/video': Video,
  67. 'formats/list/item': ListItem,
  68. 'modules/formula': Formula,
  69. 'modules/syntax': Syntax,
  70. 'modules/toolbar': Toolbar,
  71. 'themes/bubble': BubbleTheme,
  72. 'themes/snow': SnowTheme,
  73. 'ui/icons': Icons,
  74. 'ui/picker': Picker,
  75. 'ui/icon-picker': IconPicker,
  76. 'ui/color-picker': ColorPicker,
  77. 'ui/tooltip': Tooltip
  78. }, true);
  79. export default Quill;