forked from github/dataease
Merge pull request #8623 from dataease/pr@dev-v2@fix_tinymce_dynamic_context_path
fix: 动态访问路径场景tinymce组件静态资源路径错误
This commit is contained in:
commit
3296ba639c
@ -50,10 +50,10 @@ const tinymceId = 'tinymce-view-pf'
|
||||
const init = ref({
|
||||
selector: '#' + tinymceId,
|
||||
toolbar_items_size: 'small',
|
||||
language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面
|
||||
language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面
|
||||
language: 'zh_CN',
|
||||
skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // 皮肤
|
||||
content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'),
|
||||
skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // 皮肤
|
||||
content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'),
|
||||
plugins:
|
||||
'advlist autolink link image lists charmap media wordcount table contextmenu directionality pagebreak', // 插件
|
||||
// 工具栏
|
||||
|
@ -59,9 +59,9 @@ const tinymceId = ref('vue-tinymce-' + +new Date() + ((Math.random() * 1000).toF
|
||||
const init = reactive({
|
||||
// inline: true, // 开启内联模式
|
||||
selector: '#' + tinymceId.value, //富文本编辑器的id,
|
||||
language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件
|
||||
language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件
|
||||
language: 'zh_CN', //语言
|
||||
skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // skin路径,具体路径看自己的项目
|
||||
skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // skin路径,具体路径看自己的项目
|
||||
height: 400, //编辑器高度
|
||||
branding: false, //是否禁用“Powered by TinyMCE”
|
||||
menubar: true, //顶部菜单栏显示
|
||||
@ -76,7 +76,7 @@ const init = reactive({
|
||||
nonbreaking_force_tab: false,
|
||||
paste_auto_cleanup_on_paste: false,
|
||||
file_picker_types: 'file',
|
||||
content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'), //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||
content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'), //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入
|
||||
//图片上传
|
||||
images_upload_handler: blobInfo =>
|
||||
new Promise((resolve, reject) => {
|
||||
|
@ -114,10 +114,10 @@ const myValue = ref('')
|
||||
const init = ref({
|
||||
selector: '#' + tinymceId,
|
||||
toolbar_items_size: 'small',
|
||||
language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面
|
||||
language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面
|
||||
language: 'zh_CN',
|
||||
skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // 皮肤
|
||||
content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'),
|
||||
skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // 皮肤
|
||||
content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'),
|
||||
plugins:
|
||||
'advlist autolink link image lists charmap media wordcount table contextmenu directionality pagebreak', // 插件
|
||||
// 工具栏
|
||||
|
Loading…
Reference in New Issue
Block a user