This repository was archived by the owner on Apr 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Original file line number Diff line number Diff line change 33</template >
44<script >
55import Editor from " tui-editor" ;
6-
76import editorEvents from " ./editorEvents" ;
8- import editorDefaultOptions from " ./editorDefaultOptions" ;
97import valueUpdateMethod from " ./valueUpdateMethod" ;
108
119export default {
1210 name: " TuiEditor" ,
1311 props: {
1412 previewStyle: {
15- type: String ,
16- default: " tab"
13+ type: String
1714 },
1815 height: {
19- type: String ,
20- default: " 300px"
16+ type: String
2117 },
2218 value: {
23- type: String ,
24- default: " "
19+ type: String
2520 },
2621 mode: {
27- type: String ,
28- default: " markdown"
22+ type: String
2923 },
3024 options: {
31- type: Object ,
32- default () {
33- return editorDefaultOptions;
34- }
25+ type: Object
3526 },
3627 html: {
3728 type: String
@@ -48,7 +39,7 @@ export default {
4839 },
4940 computed: {
5041 editorOptions () {
51- const options = Object .assign ({}, editorDefaultOptions, this .options );
42+ const options = Object .assign ({}, this .options );
5243 options .initialValue = this .value ;
5344 options .initialEditType = this .mode ;
5445 options .height = this .height ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments