提交 783a938e authored 作者: Soup's avatar Soup

产品提出的优化

上级 2c8f84cd
favicon.ico

24.4 KB | W: | H:

favicon.ico

1.7 KB | W: | H:

favicon.ico
favicon.ico
favicon.ico
favicon.ico
  • 2-up
  • Swipe
  • Onion skin
src/assets/img/ciic_logo.png

1.5 KB | W: | H:

src/assets/img/ciic_logo.png

3.2 KB | W: | H:

src/assets/img/ciic_logo.png
src/assets/img/ciic_logo.png
src/assets/img/ciic_logo.png
src/assets/img/ciic_logo.png
  • 2-up
  • Swipe
  • Onion skin
// Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/
const plugins = ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime legacyoutput link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount']
//require('./plugin.js');
const plugins = ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime legacyoutput link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount lineheight']
export default plugins
// Here is a list of the toolbar
// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
const toolbar = ['bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak fullscreen insertdatetime media table emoticons forecolor backcolor']
const toolbar = ['bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak fullscreen insertdatetime media table emoticons forecolor backcolor','fontsizeselect lineheightselect']
export default toolbar
// Exports the "lineheight" plugin for usage with module loaders
// Usage:
// CommonJS:
// require('tinymce/plugins/lineheight')
// ES2015:
// import 'tinymce/plugins/lineheight'
require('./plugin.js');
\ No newline at end of file
tinymce.addI18n('de', {
"Line Height": "Zeilen Höhe"
});
\ No newline at end of file
!(function() {
'use strict';
/* eslint-disable no-undef */
const global = tinymce.util.Tools.resolve('tinymce.PluginManager');
global.add('lineheight', function(editor) {
editor.on('init', function() {
editor.formatter.register({
lineheight: {
selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table',
styles: { 'line-height': '%value' }
}
});
editor.ui.registry.addIcon(
'line-height',
`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M9.984 12.984v-1.969h12v1.969h-12zM9.984 18.984v-1.969h12v1.969h-12zM9.984 5.016h12v1.969h-12v-1.969zM6 6.984v10.031h2.484l-3.469 3.469-3.516-3.469h2.484v-10.031h-2.484l3.516-3.469 3.469 3.469h-2.484z"></path>
</svg>
`
);
});
editor.ui.registry.addMenuButton('lineheightselect', {
tooltip: 'Line height',
icon: 'line-height',
fetch: function(callback) {
const defaultLineHeightFormats = '1 1.5 1.75 2 3 4 5';
const userSettings = editor.settings.lineheight_formats;
const lineheightFormats = typeof userSettings === 'string' ? userSettings : defaultLineHeightFormats;
const items = lineheightFormats.split(' ').map(item => {
let text = item,
value = item;
const values = item.split('=');
if (values.length > 1) {
[text, value] = values;
}
return {
type: 'menuitem',
text: text,
onAction: function() {
editor.formatter.apply('lineheight', { value: value });
editor.fire('change', {});
}
};
});
callback(items);
}
});
});
})();
(function(e){e.PluginManager.add("lineheight",function(t,n,r){t.on("init",function(){t.formatter.register({lineheight:{inline:"span",styles:{"line-height":"%value"}}})});t.addButton("lineheightselect",function(){var n=[],r="8pt 10pt 12pt 14pt 18pt 24pt 36pt";var i=t.settings.lineheight_formats||r;i.split(" ").forEach(function(e){var t=e,r=e;var i=e.split("=");if(i.length>1){t=i[0];r=i[1]}n.push({text:t,value:r})});return{type:"listbox",text:"行高",tooltip:"行高",values:n,fixedWidth:true,onPostRender:function(){var e=this;t.on("nodeChange",function(r){var i="lineheight";var s=t.formatter;var o=null;r.parents.forEach(function(e){n.forEach(function(t){if(i){if(s.matchNode(e,i,{value:t.value})){o=t.value}}else{if(s.matchNode(e,t.value)){o=t.value}}if(o){return false}});if(o){return false}});e.value(o)})},onselect:function(t){e.activeEditor.formatter.apply("lineheight",{value:this.value()})}}})});e.PluginManager.requireLangPack("lineheight","de")})(tinymce)
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论