Skip to content

Commit ada6a21

Browse files
gongjsvanoneang
authored andcommitted
Feat tinymce (#247)
* Update README.md * Update axios.js * feat: publish new version * Update README.md * Update README.md * Update README.md * fix:版本日志中字段名拼写错误 * feat:增加tinymce组件默认内容功能
1 parent f597078 commit ada6a21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/base/tinymce/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import './importAll'
1313
export default {
1414
name: 'TinymceEditor',
1515
props: {
16+
defaultContent: {
17+
type: String,
18+
default: '',
19+
},
1620
height: {
1721
type: Number,
1822
default: 500,
@@ -86,6 +90,11 @@ export default {
8690
},
8791
}
8892
},
93+
mounted() {
94+
if (this.defaultContent) {
95+
this.content = this.defaultContent
96+
}
97+
},
8998
watch: {
9099
// eslint-disable-next-line
91100
content: function() {

0 commit comments

Comments
 (0)