config.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. return [
  3. [
  4. 'name' => 'classname',
  5. 'title' => '渲染文本框元素',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => '.editor',
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '用于对指定的元素渲染,一般情况下无需修改',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'height',
  17. 'title' => '默认高度',
  18. 'type' => 'string',
  19. 'content' => [],
  20. 'value' => '250',
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '编辑器默认高度,auto表示自适应高度',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'minHeight',
  29. 'title' => '默认高度',
  30. 'type' => 'number',
  31. 'content' => [],
  32. 'value' => '250',
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '编辑器最低高度',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'toolbarFloat',
  41. 'title' => '工具栏浮动',
  42. 'type' => 'radio',
  43. 'content' => [
  44. 1 => '是',
  45. 0 => '否',
  46. ],
  47. 'value' => '0',
  48. 'rule' => 'required',
  49. 'msg' => '',
  50. 'tip' => '是否浮动工具栏',
  51. 'ok' => '',
  52. 'extend' => '',
  53. ],
  54. [
  55. 'name' => 'toolbar',
  56. 'title' => '默认工具栏',
  57. 'type' => 'text',
  58. 'content' => [],
  59. 'value' => '["title", "bold", "italic", "underline", "strikethrough", "fontScale", "color", "|", "ol", "ul", "blockquote", "code", "table", "|", "link", "image", "hr", "|", "indent", "outdent", "alignment"]',
  60. 'rule' => 'required',
  61. 'msg' => '',
  62. 'tip' => '',
  63. 'ok' => '',
  64. 'extend' => '',
  65. ],
  66. [
  67. 'name' => 'mobileToolbar',
  68. 'title' => '移动端工具栏',
  69. 'type' => 'text',
  70. 'content' => [],
  71. 'value' => '["bold", "underline", "strikethrough", "color", "ul", "ol"]',
  72. 'rule' => 'required',
  73. 'msg' => '',
  74. 'tip' => '移动端工具栏配置',
  75. 'ok' => '',
  76. 'extend' => '',
  77. ],
  78. [
  79. 'name' => 'placeholder',
  80. 'title' => '默认占位文字',
  81. 'type' => 'string',
  82. 'content' => [],
  83. 'value' => '',
  84. 'rule' => '',
  85. 'msg' => '',
  86. 'tip' => '',
  87. 'ok' => '',
  88. 'extend' => '',
  89. ],
  90. [
  91. 'name' => 'isdompurify',
  92. 'title' => '是否启用加强的HTML过滤',
  93. 'type' => 'radio',
  94. 'content' => [
  95. 1 => '是',
  96. 0 => '否',
  97. ],
  98. 'value' => '1',
  99. 'rule' => 'required',
  100. 'msg' => '',
  101. 'tip' => '',
  102. 'ok' => '',
  103. 'extend' => '',
  104. ],
  105. [
  106. 'name' => 'allowiframeprefixs',
  107. 'title' => '设定允许iframe的白名单',
  108. 'type' => 'array',
  109. 'content' => [
  110. ],
  111. 'value' => [
  112. ],
  113. 'rule' => 'required',
  114. 'favisible' => 'isdompurify=1',
  115. 'msg' => '',
  116. 'tip' => '',
  117. 'ok' => '',
  118. 'extend' => '',
  119. ],
  120. [
  121. 'name' => '__tips__',
  122. 'title' => '温馨提示',
  123. 'type' => 'string',
  124. 'content' => [],
  125. 'value' => '工具栏配置请参考文档:https://simditor.tower.im/docs/doc-config.html',
  126. 'rule' => '',
  127. 'msg' => '',
  128. 'tip' => '',
  129. 'ok' => '',
  130. 'extend' => '',
  131. ],
  132. ];