Browse Source

富文本工具栏配置视频

tags/v3.0.0
RuoYi 4 years ago
parent
commit
ab89a5efcc
  1. 4
      ruoyi-ui/src/components/Editor/index.vue

4
ruoyi-ui/src/components/Editor/index.vue

@ -75,7 +75,7 @@ export default { @@ -75,7 +75,7 @@ export default {
[{ color: [] }, { background: [] }], //
[{ align: [] }], //
["clean"], //
["link", "image"] //
["link", "image", "video"] //
],
},
placeholder: "请输入内容",
@ -165,7 +165,7 @@ export default { @@ -165,7 +165,7 @@ export default {
//
let length = quill.getSelection().index;
// res.url
quill.insertEmbed(length, "image", res.data.url);
quill.insertEmbed(length, "image", res.url);
//
quill.setSelection(length + 1);
} else {

Loading…
Cancel
Save