editOptions.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. const editorOption = {
  2. theme: 'snow',
  3. boundary: document.body,
  4. modules: {
  5. toolbar: [
  6. ['bold', 'italic', 'underline', 'strike'],
  7. ['blockquote', 'code-block'],
  8. [{
  9. 'header': 1
  10. }, {
  11. 'header': 2
  12. }],
  13. [{
  14. 'list': 'ordered'
  15. }, {
  16. 'list': 'bullet'
  17. }],
  18. [{
  19. 'script': 'sub'
  20. }, {
  21. 'script': 'super'
  22. }],
  23. [{
  24. 'indent': '-1'
  25. }, {
  26. 'indent': '+1'
  27. }],
  28. [{
  29. 'direction': 'rtl'
  30. }],
  31. [{
  32. 'size': ['small', false, 'large', 'huge']
  33. }],
  34. [{
  35. 'header': [1, 2, 3, 4, 5, 6, false]
  36. }],
  37. [{
  38. 'color': []
  39. }, {
  40. 'background': []
  41. }],
  42. [{
  43. 'font': []
  44. }],
  45. [{
  46. 'align': []
  47. }],
  48. ['clean'],
  49. ['link', 'image', 'video']
  50. ]
  51. },
  52. placeholder: 'Insert text here ...',
  53. readOnly: false,
  54. }
  55. export default editorOption