perf(X-Pack): 阈值告警-富文本编辑器自动截取自定义链接地址 #18366

This commit is contained in:
fit2cloud-chenyw
2026-05-19 14:46:44 +08:00
committed by fit2cloud-chenyw
parent 48e1625774
commit 1c7a30e32a
4 changed files with 14 additions and 2 deletions

View File

@@ -80,6 +80,9 @@ const init = ref({
outer_placeholder: '双击输入文字',
inline: false,
branding: true,
relative_urls: false,
remove_script_host: false,
convert_urls: false,
setup: editor => {
const emoticons = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M8.66683 4.66671H11.0002C11.1843 4.66671 11.3335 4.81595 11.3335 5.00004V5.66671C11.3335 5.8508 11.1843 6.00004 11.0002 6.00004H8.66683V11C8.66683 11.1841 8.51759 11.3334 8.3335 11.3334H7.66683C7.48273 11.3334 7.3335 11.1841 7.3335 11V6.00004H5.00016C4.81607 6.00004 4.66683 5.8508 4.66683 5.66671V5.00004C4.66683 4.81595 4.81607 4.66671 5.00016 4.66671H7.3335C7.3335 4.66671 8.66683 4.68559 8.66683 4.66671Z" fill="#1F2329"/>

View File

@@ -71,7 +71,10 @@ const init = ref({
placeholder: '',
outer_placeholder: '双击输入文字',
inline: inline.value,
branding: true
branding: true,
relative_urls: false,
remove_script_host: false,
convert_urls: false
})
tinymce.init({})
</script>

View File

@@ -65,7 +65,10 @@ const init = reactive({
language: 'zh_CN', //语言
skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // skin路径具体路径看自己的项目
height: 400, //编辑器高度
branding: false, //是否禁用Powered by TinyMCE”
branding: false, //是否禁用Powered by TinyMCE”
relative_urls: false,
remove_script_host: false,
convert_urls: false,
menubar: true, //顶部菜单栏显示
image_dimensions: false, //去除宽高属性
plugins: props.plugins, //这里的数据是在props里面就定义好了的

View File

@@ -181,6 +181,9 @@ const init = ref({
outer_placeholder: outerPlaceholder,
inline: true, // 开启内联模式
branding: false,
relative_urls: false,
remove_script_host: false,
convert_urls: false,
icons: 'vertical-content',
vertical_align: element.value.propValue.verticalAlign,
table_default_styles: {