暗色主题配色
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23/* textarea - css vars */ --w-e-textarea-bg-color: #1d1e1f; --w-e-textarea-color: #E5EAF3; --w-e-textarea-border-color: transparent; --w-e-textarea-slight-border-color: #e8e8e8; --w-e-textarea-slight-color: #d4d4d4; --w-e-textarea-slight-bg-color: #18222c; /* 选中的元素,如选中了分割线 */ --w-e-textarea-selected-border-color: #141414; /* 工具,如图片拖拽按钮 */ --w-e-textarea-handler-bg-color: #4290f7; /* toolbar - css vars */ --w-e-toolbar-color: #E5EAF3; --w-e-toolbar-bg-color: #1d1e1f; --w-e-toolbar-active-color: #fff; --w-e-toolbar-active-bg-color: #999; --w-e-toolbar-disabled-color: #999; --w-e-toolbar-border-color: #E5EAF3; /* modal - css vars */ --w-e-modal-button-bg-color: #1d1e1f; --w-e-modal-button-border-color: #d9d9d9;
工具栏配置
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64const toolbarConfig: Partial<IToolbarConfig> = { toolbarKeys: [ "bold", // 粗体 "underline", // 下划线 "italic", // 斜体 "through", // 删除线 "code", // 内行代码 "sub", // 下标 "sup", // 上标 "clearStyle", // 清除格式 "color", // 文字颜色 "bgColor", // 背景色 "fontSize", // 字号 "fontFamily", // 字体 "indent", // 增加缩进 "delIndent", // 减少缩进 "justifyLeft", // 左对齐 "justifyRight", // 右对齐 "justifyCenter", // 居中对齐 "justifyJustify", // 两端对齐 "lineHeight", // 行高 "insertImage", // 网络图片 "deleteImage", // 删除图片 "editImage", // 编辑图片 "viewImageLink", // 查看链接 "imageWidth30", // 图片30%大小 "imageWidth50", // 图片50%大小 "imageWidth100", // 图片100%大小 "divider", // 分割线 "emotion", // 表情 "insertLink", // 插入链接 "editLink", // 修改链接 "unLink", // 取消链接 "viewLink", // 查看链接 "codeBlock", // 代码块 "blockquote", // 引用 "headerSelect", // 标题 "header1", // h1 "header2", // h2 "header3", // h3 "header4", // h4 "header5", // h5 "todo", // 待办 "redo", // 重做 "undo", // 撤销 "fullScreen", // 全屏 "enter", // 回车 "bulletedList", // 无序列表 "numberedList", // 有序列表 "insertTable", // 插入表格 "deleteTable", // 删除表格 "insertTableRow", // 插入行 "deleteTableRow", // 删除行 "insertTableCol", // 插入列 "deleteTableCol", // 删除列 "tableHeader", // 表头 "tableFullWidth", // 宽度自适应 "insertVideo", // 插入视频 "uploadVideo", // 上传视频 "editVideoSize", // 修改视频尺寸 "uploadImage", // 上传图片 "codeSelectLang" // 选择代码块语言 ] }
最后
以上就是不安胡萝卜最近收集整理的关于@wangeditor/editor-for-vue ^5.1.12 富文本使用记录的全部内容,更多相关@wangeditor/editor-for-vue内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复