tiny插件功能初始

烟锁池塘柳 2023-1-6 437

plugins: 'code lists advlist codesample image link media table wordcount fullscreen autolink charmap emoticons insertdatetime help',
toolbar: 'code | fontfamily blocks bold italic underline strikethrough superscript subscript| forecolor backcolor charmap emoticons removeformat | align indent outdent bullist numlist | image media link unlink codesample table | hr blockquote insertdatetime | fullscreen | help',
block_formats:'P=p;H1=h1;H2=h2;H3=h3;H4=h4;H5=h5;H6=h6;',formats:{blockquote:{block:'blockquote',classes:'blockquote',wrapper:true}},branding: false,codesample_languages:[{text:'ASP.NET(C#)',value:'aspnet'},{text:'AutoIt',value:'autoIt'},{text:'Bash',value:'bash'},{text:'BASIC',value:'basic'},{text:'BBcode',value:'bbcode'},{text:'C',value:'c'},{text:'C#',value:'csharp'},{text:'C++',value:'cpp'},{text:'CMake',value:'cmake'},{text:'CSS',value:'css'},{text:'CSS Extras',value:'css-extras'},{text:'CSV',value:'csv'},{text:'Docker',value:'docker, dockerfile'},{text:'Excel Formula',value:'excel-formula, xlsx, xls'},{text:'Git',value:'git'},{text:'Go',value:'go'},{text:'Go module',value:'go-module, go-mod'},{text:'GraphQL',value:'graphql'},{text:'HTML',value:'html'},{text:'Ini',value:'ini'},{text:'Java',value:'java'},{text:'JavaScript',value:'javascript'},{text:'JavaDoc',value:'javadoc'},{text:'JavaDoc-like',value:'javadoclike'},{text:'Java stack trace',value:'javastacktrace'},{text:'JSON',value:'json'},{text:'JSON5',value:'json5'},{text:'JSONP',value:'jsonp'},{text:'Log file',value:'log'},{text:'Lua',value:'lua'},{text:'Makefile',value:'makefile'},{text:'Markdown',value:'markdown, md'},{text:'MATLAB',value:'matlab'},{text:'MongoDB',value:'mongodb'},{text:'N4JS',value:'n4js, n4jsd'},{text:'Nginx',value:'nginx'},{text:'NSIS',value:'nsis'},{text:'Perl',value:'perl'},{text:'PHP',value:'php'},{text:'PHPDoc',value:'phpdoc'},{text:'PHP Extras',value:'php-extras'},{text:'PL/SQL',value:'plsql'},{text:'PowerShell',value:'powershell'},{text:'Python',value:'python'},{text:'QML',value:'qml'},{text:'R',value:'r'},{text:'Regex',value:'regex'},{text:'Ruby',value:'ruby'},{text:'Rust',value:'rust'},{text:'SQL',value:'sql'},{text:'Swift',value:'swift'},{text:'URI',value:'uri'},{text:'VB.Net',value:'vbnet'},{text:'VIM',value:'vim'},{text:'Visual Basic',value:'visual-basic, vb, vba'},{text:'Wiki markup',value:'wiki'},{text:'YAML',value:'yaml'},{text:'XML',value:'xml'},{text:'Treeview',value:'treeview'}],
skin: 'tinymce-5',
toolbar_groups: { formatting: { icon: 'format', tooltip: '格式化', items: 'fontfamily | blocks | bold italic underline strikethrough | superscript subscript' },
fontcolor: { icon: 'color-levels', tooltip: '文字颜色', items: 'forecolor backcolor' },
indentation: { icon: 'indent', tooltip: '缩进', items: 'indent outdent' },
},
paste_remove_styles_if_webkit: false,
font_family_formats: '微软雅黑=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;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;知乎配置=BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;小米配置=Helvetica Neue,Helvetica,Arial,Microsoft Yahei,Hiragino Sans GB,Heiti SC,WenQuanYi Micro Hei,sans-serif',
mobile: { toolbar_sticky: true, toolbar_mode: 'Wrap', toolbar: ['code blocks bold italic underline strikethrough superscript subscript forecolor backcolor charmap emoticons removeformat align indent outdent bullist numlist image media link unlink codesample table hr blockquote insertdatetime fullscreen help'], },

最新回复 (0)
返回
发新帖