Skip to content

Commit

Permalink
fix: 修复富文本显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-xiao-shuai committed Apr 29, 2024
1 parent a1d7b54 commit fe72712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/tiny-mce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ export default defineComponent({
function getContentFun() {
context.emit(
'update:modelValue',
window.tinymce.get(tinymceId).getContent()
window.tinymce.get(tinymceId).getContent(),
)
}
function init() {
window.tinymce.init({
window.tinymce?.init({
selector: `#${tinymceId}`,
branding: false, // 去水印
language_url: '/static/zh_CN.js', //语言包路径地址
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/rich-text/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default defineComponent({
function getData() {
richTextFun().then((response) => {
myValue.value = response.data
myValue.value = response.data.data
})
}
function getTinyMceFun() {
Expand Down

0 comments on commit fe72712

Please sign in to comment.