fix: 动态访问路径场景tinymce组件静态资源路径错误

This commit is contained in:
fit2cloud-chenyw 2024-03-21 11:20:27 +08:00
parent c8cb20ecbe
commit e8ae8bce22
3 changed files with 9 additions and 9 deletions

View File

@ -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'), // publicstatic
language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // publicstatic
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', //
//

View File

@ -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'), //csscsscss
content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'), //csscsscss
//
images_upload_handler: blobInfo =>
new Promise((resolve, reject) => {

View File

@ -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'), // publicstatic
language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // publicstatic
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', //
//