baigl #46
|
@ -45,6 +45,7 @@ import "tinymce/plugins/fullscreen"; //全屏
|
|||
import "tinymce/plugins/anchor"; //锚点
|
||||
|
||||
import { ref, reactive, defineProps, defineEmits, nextTick, onMounted, computed, watch } from 'vue'
|
||||
import { getStaticUrl } from '@/utils/tool'
|
||||
//import { listUploadfile, getUploadFile, delUploadFile, addUploadFile, saveUploadFile } from "@/api/comm/uploadfile";
|
||||
|
||||
const emits = defineEmits(["update:modelValue", "setHtml"]);
|
||||
|
@ -118,9 +119,13 @@ const tinymceId = ref(
|
|||
//定义一个对象 init初始化
|
||||
const init = reactive({
|
||||
selector: "#" + tinymceId.value, //富文本编辑器的id,
|
||||
skin_url: "../../../public/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目
|
||||
content_css: "../../../public/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||
language_url: "../../../public/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
|
||||
skin_url: getStaticUrl('/tinymce/skins/ui/oxide'),
|
||||
content_css: getStaticUrl('tinymce/skins/content/default/content.css'), //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||
language_url: getStaticUrl('/tinymce/langs/zh_CN.js'), // 语言包的路径,具体路径看自己的项目
|
||||
|
||||
//skin_url: "/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目
|
||||
//content_css: "/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||
//language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
|
||||
language: "zh_CN",
|
||||
|
||||
editable_root: props.editable_root,
|
||||
|
|
Loading…
Reference in New Issue