This commit is contained in:
parent
d5a8da438a
commit
0d0327f956
|
@ -113,13 +113,14 @@ const loading = ref(false);
|
||||||
const tinymceId = ref(
|
const tinymceId = ref(
|
||||||
"vue-tinymce-" + +new Date() + ((Math.random() * 1000).toFixed(0) + "")
|
"vue-tinymce-" + +new Date() + ((Math.random() * 1000).toFixed(0) + "")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
//定义一个对象 init初始化
|
//定义一个对象 init初始化
|
||||||
const init = reactive({
|
const init = reactive({
|
||||||
selector: "#" + tinymceId.value, //富文本编辑器的id,
|
selector: "#" + tinymceId.value, //富文本编辑器的id,
|
||||||
skin_url: "/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目
|
skin_url: "../../../public/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目
|
||||||
content_css: "/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
content_css: "../../../public/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||||
language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
|
language_url: "../../../public/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
|
||||||
language: "zh_CN",
|
language: "zh_CN",
|
||||||
|
|
||||||
editable_root: props.editable_root,
|
editable_root: props.editable_root,
|
||||||
|
|
Loading…
Reference in New Issue