Showing
2 changed files
with
7 additions
and
7 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-07-12 13:28:27 | 2 | * @Date: 2024-07-12 13:28:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-12 17:22:36 | 4 | + * @LastEditTime: 2024-07-12 17:58:57 |
| 5 | * @FilePath: /data-table/src/components/TEditor/index.vue | 5 | * @FilePath: /data-table/src/components/TEditor/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -103,7 +103,7 @@ const tinymceId = ref( | ... | @@ -103,7 +103,7 @@ const tinymceId = ref( |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | //定义一个对象 init初始化 | 105 | //定义一个对象 init初始化 |
| 106 | -const init = { | 106 | +/*const init = { |
| 107 | selector: "#" + tinymceId.value, //富文本编辑器的id, | 107 | selector: "#" + tinymceId.value, //富文本编辑器的id, |
| 108 | // language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 | 108 | // language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 |
| 109 | // language_url: "https://cdn.ipadbiz.cn/custom_form/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 | 109 | // language_url: "https://cdn.ipadbiz.cn/custom_form/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 |
| ... | @@ -191,9 +191,9 @@ const init = { | ... | @@ -191,9 +191,9 @@ const init = { |
| 191 | 191 | ||
| 192 | // }); | 192 | // }); |
| 193 | // }, | 193 | // }, |
| 194 | -}; | 194 | +};*/ |
| 195 | 195 | ||
| 196 | -/*const tinymceOptions = { | 196 | +const tinymceOptions = { |
| 197 | // selector: selector, | 197 | // selector: selector, |
| 198 | language: 'zh_CN', | 198 | language: 'zh_CN', |
| 199 | // 插件列表:https://www.tiny.cloud/docs/plugins/opensource/ | 199 | // 插件列表:https://www.tiny.cloud/docs/plugins/opensource/ |
| ... | @@ -212,7 +212,7 @@ const init = { | ... | @@ -212,7 +212,7 @@ const init = { |
| 212 | // var input = document.createElement('input'); | 212 | // var input = document.createElement('input'); |
| 213 | // input.setAttribute('type', 'file'); | 213 | // input.setAttribute('type', 'file'); |
| 214 | // if (meta.filetype == 'image') { // 图片上传控件的点击事件 | 214 | // if (meta.filetype == 'image') { // 图片上传控件的点击事件 |
| 215 | - // input.setAttribute('accept', 'image/~'); | 215 | + // input.setAttribute('accept', 'image/*'); |
| 216 | // } | 216 | // } |
| 217 | // input.onchange = function () { | 217 | // input.onchange = function () { |
| 218 | // upload({ | 218 | // upload({ |
| ... | @@ -231,7 +231,7 @@ const init = { | ... | @@ -231,7 +231,7 @@ const init = { |
| 231 | // document.getElementById(editor.id).click(); | 231 | // document.getElementById(editor.id).click(); |
| 232 | // }); | 232 | // }); |
| 233 | // }, | 233 | // }, |
| 234 | -}*/ | 234 | +} |
| 235 | 235 | ||
| 236 | // 外部传递进来的数据变化 | 236 | // 外部传递进来的数据变化 |
| 237 | const myValue = computed({ | 237 | const myValue = computed({ | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="tinymce-box"> | 2 | <div class="tinymce-box"> |
| 3 | - <TEditor ref="refEdit" readonly ></TEditor> | 3 | + <TEditor ref="refEdit" ></TEditor> |
| 4 | <div @click="getValue">获取内容</div> | 4 | <div @click="getValue">获取内容</div> |
| 5 | <div @click="setValue">设置内容</div> | 5 | <div @click="setValue">设置内容</div> |
| 6 | </div> | 6 | </div> | ... | ... |
-
Please register or login to post a comment