Sanakey
2024-09-04 8432b405b25ad58ae23d0b1a60c0b001236d4144
提交 | 用户 | age
3576d0 1 // Any plugins you want to setting has to be imported
V 2 // Detail plugins list see https://www.tinymce.com/docs/plugins/
3 // Custom builds see https://www.tinymce.com/download/custom-builds/
4 // colorpicker/contextmenu/textcolor plugin is now built in to the core editor, please remove it from your editor configuration
5
6 export const plugins = [
28c484 7   // 'print preview powerpaste casechange importcss tinydrive searchreplace autolink autosave save directionality advcode visualblocks visualchars fullscreen image link media mediaembed template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists checklist wordcount tinymcespellchecker a11ychecker imagetools textpattern noneditable help formatpainter permanentpen pageembed charmap tinycomments mentions quickbars linkchecker emoticons advtable export'
S 8   'print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave autoresize importcss toc ',
9   // 'advlist anchor autolink autosave code codesample  directionality  fullscreen hr insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus  template  textpattern visualblocks visualchars wordcount',
3576d0 10 ];
V 11
12 export const toolbar = [
28c484 13   // 'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent |  numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | fullscreen  preview save print | insertfile image media pageembed template link anchor codesample | a11ycheck ltr rtl | showcomments addcomment'
170f4d 14   // 'code undo redo restoredraft | fontselect fontsizeselect | forecolor backcolor bold italic underline strikethrough | link  table emoticons | bullist numlist | preview fullscreen | styleselect formatselect cut copy paste pastetext  |  blockquote subscript superscript removeformat | alignleft aligncenter alignright alignjustify outdent indent | anchor image media charmap  hr pagebreak insertdatetime print  |  lineheight ',
H 15
16   // 配置
17   'undo redo formats removeformat | fontselect | fontsizeselect |  bold italic underline | forecolor backcolor |alignleft lineheight | link table emoticons | bullist numlist | preview fullscreen | styleselect | div  ',
28c484 18   // 'fontsizeselect lineheight searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent  blockquote undo redo removeformat subscript superscript code codesample',
S 19   // 'hr bullist numlist link  preview anchor pagebreak insertdatetime media  forecolor backcolor fullscreen',
3576d0 20 ];
28c484 21
S 22
23 // export const fontsize = '12px 14px 16px 18px 24px 36px 48px 56px 72px';
24 // export const font = '微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;';
170f4d 25
H 26 export const toolbar_groups= {
27   div: {
28     icon: 'image-options',
29     tooltip: 'Formatting',
30     items: 'styleselect outdent indent | subscript superscript strikethrough blockquote charmap | ltr rtl | visualblocks visualchars | hr pagebreak | cut copy paste pastetext | code print  insertdatetime',
31 },
32 }