Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-07-12 17:59:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e67cb4c1f3e28ba2be1a3fe1865347cfcaadce7f
e67cb4c1
1 parent
2215e7ae
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
src/components/TEditor/index.vue
src/views/test.vue
src/components/TEditor/index.vue
View file @
e67cb4c
<!--
* @Date: 2024-07-12 13:28:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-12 17:
22:36
* @LastEditTime: 2024-07-12 17:
58:57
* @FilePath: /data-table/src/components/TEditor/index.vue
* @Description: 文件描述
-->
...
...
@@ -103,7 +103,7 @@ const tinymceId = ref(
//定义一个对象 init初始化
const init = {
/*
const init = {
selector: "#" + tinymceId.value, //富文本编辑器的id,
// language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
// language_url: "https://cdn.ipadbiz.cn/custom_form/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目
...
...
@@ -191,9 +191,9 @@ const init = {
// });
// },
};
};
*/
/*
const tinymceOptions = {
const tinymceOptions = {
// selector: selector,
language: 'zh_CN',
// 插件列表:https://www.tiny.cloud/docs/plugins/opensource/
...
...
@@ -212,7 +212,7 @@ const init = {
// var input = document.createElement('input');
// input.setAttribute('type', 'file');
// if (meta.filetype == 'image') { // 图片上传控件的点击事件
// input.setAttribute('accept', 'image/
~
');
// input.setAttribute('accept', 'image/
*
');
// }
// input.onchange = function () {
// upload({
...
...
@@ -231,7 +231,7 @@ const init = {
// document.getElementById(editor.id).click();
// });
// },
}
*/
}
// 外部传递进来的数据变化
const myValue = computed({
...
...
src/views/test.vue
View file @
e67cb4c
<template>
<div class="tinymce-box">
<TEditor ref="refEdit"
readonly
></TEditor>
<TEditor ref="refEdit" ></TEditor>
<div @click="getValue">获取内容</div>
<div @click="setValue">设置内容</div>
</div>
...
...
Please
register
or
login
to post a comment