提交 30bdcd83 authored 作者: lihuihui's avatar lihuihui

udpate

上级 970fc84c
...@@ -98,3 +98,36 @@ textarea:focus { ...@@ -98,3 +98,36 @@ textarea:focus {
.tox-notifications-container{ .tox-notifications-container{
display: none; display: none;
} }
@font-face {
font-family: 'fangsong';
src: url('@/assets/font/fangsong.ttf');
}
@font-face {
font-family: 'heiti';
src: url('@/assets/font/heiti.ttf');
}
@font-face {
font-family: 'kaiti';
src: url('@/assets/font/kaiti.ttf');
}
@font-face {
font-family: 'ruiziyunzikuLishuti';
src: url('@/assets/font/ruiziyunzikuLishuti.ttf');
}
@font-face {
font-family: 'songti';
src: url('@/assets/font/songti.ttf');
}
@font-face {
font-family: 'weiruanyahei';
src: url('@/assets/font/weiruanyahei.ttf');
}
@font-face {
font-family: 'wendingzhongkaiti';
src: url('@/assets/font/wendingzhongkaiti.ttf');
}
@font-face {
font-family: 'yongzhongkaiti';
src: url('@/assets/font/yongzhongkaiti.ttf');
}
...@@ -23,7 +23,9 @@ export default { ...@@ -23,7 +23,9 @@ export default {
statusbar: false, statusbar: false,
plugins: 'table autoresize charmap fullscreen hr lists link code preview quickbars', plugins: 'table autoresize charmap fullscreen hr lists link code preview quickbars',
toolbar: toolbar:
'undo redo | fontsizeselect lineheight bold italic underline strikethrough forecolor backcolor | link quickimage image media table | align hangingindent indent outdent numlist bullist | charmap blockquote hr fullscreen | code preview', 'undo redo | fontselect fontsizeselect lineheight bold italic underline strikethrough forecolor backcolor | link quickimage image media table | align hangingindent indent outdent numlist bullist | charmap blockquote hr fullscreen | code preview',
font_formats:
'微软雅黑=Microsoft YaHei;仿宋=fangsong;黑体=heiti;楷体=kaiti;锐字云字库隶书体=ruiziyunzikuLishuti;宋体=songti;文鼎中楷体=wendingzhongkaiti;永中楷体=yongzhongkaiti',
// font_formats: // font_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;Times New Roman', // '微软雅黑=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;Times New Roman',
fontsize_formats: fontsize_formats:
...@@ -31,9 +33,9 @@ export default { ...@@ -31,9 +33,9 @@ export default {
// lineheight_formats: '0.5 1 1.2 1.5 2', // lineheight_formats: '0.5 1 1.2 1.5 2',
images_upload_handler: ImageUpload, images_upload_handler: ImageUpload,
automatic_uploads: true, automatic_uploads: true,
quickbars_insert_toolbar: true, quickbars_insert_toolbar: true
// style_formats: [{ title: '悬挂缩进', block: 'p', styles: { textIndent: '-2em', paddingLeft: '2em' } }], // style_formats: [{ title: '悬挂缩进', block: 'p', styles: { textIndent: '-2em', paddingLeft: '2em' } }],
content_style: 'img {max-width:100%;}' // content_style: 'img {max-width:100%;}'
} }
} }
}, },
......
...@@ -309,16 +309,20 @@ export default { ...@@ -309,16 +309,20 @@ export default {
type: this.selectElement, type: this.selectElement,
tool: [ tool: [
{ name: 'zIndex', value: this.certElement.length + 1 + '' }, { name: 'zIndex', value: this.certElement.length + 1 + '' },
{ // {
name: 'fontFamily', // name: 'fontFamily',
value: 'songti', // value: 'fangsong',
optionDiv: [ // optionDiv: [
{ label: '宋体', value: 'songti' }, // { label: '仿宋', value: 'fangsong' },
{ label: '黑体', value: 'heiti' }, // { label: '黑体', value: 'heiti' },
{ label: '楷体', value: 'kaiti' }, // { label: '楷体', value: 'kaiti' },
{ label: '行楷', value: 'hangkai' } // { label: '锐字隶书', value: 'ruiziyunzikuLishuti' },
] // { label: '宋体', value: 'songti' },
}, // { label: '微软雅黑', value: 'weiruanyahei' },
// { label: '文鼎中楷体', value: 'wendingzhongkaiti' },
// { label: '永中楷体', value: 'YongZhongKaiTi' }
// ]
// },
{ name: 'fontColor', value: '#000000' } { name: 'fontColor', value: '#000000' }
], ],
html: '请输入内容', html: '请输入内容',
...@@ -340,12 +344,16 @@ export default { ...@@ -340,12 +344,16 @@ export default {
tool: [ tool: [
{ {
name: 'fontFamily', name: 'fontFamily',
value: 'songti', value: 'fangsong',
optionDiv: [ optionDiv: [
{ label: '宋体', value: 'songti' }, { label: '仿宋', value: 'fangsong' },
{ label: '黑体', value: 'heiti' }, { label: '黑体', value: 'heiti' },
{ label: '楷体', value: 'kaiti' }, { label: '楷体', value: 'kaiti' },
{ label: '行楷', value: 'hangkai' } { label: '锐字隶书', value: 'ruiziyunzikuLishuti' },
{ label: '宋体', value: 'songti' },
{ label: '微软雅黑', value: 'weiruanyahei' },
{ label: '文鼎中楷体', value: 'wendingzhongkaiti' },
{ label: '永中楷体', value: 'yongzhongkaiti' }
] ]
}, },
{ name: 'fontSize', value: '16' }, { name: 'fontSize', value: '16' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论