语言支持
IEditor 提供了文案的配置。这意味着不仅支持中文,还支持其他各种语言。
示例效果
在配置中尽情的配置即可
Here is the content.
示例代码
<div id="ied" class="ied" ref="ied"></div>
export default {
// 略去其他代码
mounted() {
this.edit = new IEditor({
el: this.$refs.ied,
lang: {
bold: 'bold',
copy: 'copy',
cut: 'cut',
inserthorizontalrule: 'insert horizontal line',
insertorderedlist: 'ordered list',
insertunorderedlist: 'unordered list',
italic: 'italic',
justifycenter: 'align center',
justifyfull: 'align full',
justifyleft: 'align left',
justifyright: 'align right',
removeformat: 'remove format',
redo: 'redo',
underline: 'underline',
undo: 'undo',
fontfamily: 'font family',
fontsize: 'font size',
lineheight: 'line height',
full: 'full screen',
image: 'image',
formatblock: 'quote',
indent: 'indent',
code: 'source code',
video: 'Video',
link: 'Link',
backcolor: 'Background',
forecolor: 'Font color',
},
placeholder: {
fontfamily: 'font',
fontsize: 'size',
lineheight: 'lineheight',
videotitle: 'format: <iframe src="..."></iframe>',
videobutton: 'insert',
linkurl: 'https://',
linktitle: 'link text',
linkbutton: 'ok',
colorok: 'ok',
colorclear: 'clear',
colortitle: 'Title',
colordiy: 'Custom color',
},
// 图片配置
image: {
emptyLinkTip: 'IEditor: please set the request link',
LinkErrorTip: 'IEditor: request link error',
},
});
this.edit.init();
},
// 略去其他代码
};