Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit f440d0a

Browse files
author
Sohee Lee
committed
refactor: use singlequote
1 parent 222f287 commit f440d0a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Editor.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<div ref="tuiEditor"></div>
33
</template>
44
<script>
5-
import Editor from "tui-editor";
6-
import editorEvents from "./editorEvents";
7-
import valueUpdateMethod from "./valueUpdateMethod";
5+
import Editor from 'tui-editor';
6+
import editorEvents from './editorEvents';
7+
import valueUpdateMethod from './valueUpdateMethod';
88
99
export default {
10-
name: "TuiEditor",
10+
name: 'TuiEditor',
1111
props: {
1212
previewStyle: {
1313
type: String
@@ -65,7 +65,7 @@ export default {
6565
},
6666
html(newValue) {
6767
this.editor.setHtml(newValue);
68-
this.$emit("input", this.editor.getValue());
68+
this.$emit('input', this.editor.getValue());
6969
},
7070
visible(newValue) {
7171
if (newValue) {
@@ -90,8 +90,8 @@ export default {
9090
9191
this.editor = new Editor(options);
9292
if (this.$listeners.input) {
93-
this.editor.on("change", () => {
94-
this.$emit("input", this.editor.getValue());
93+
this.editor.on('change', () => {
94+
this.$emit('input', this.editor.getValue());
9595
});
9696
}
9797
},
@@ -107,7 +107,7 @@ export default {
107107
if (this.editor[methodName]) {
108108
result = this.editor[methodName](...args);
109109
if (valueUpdateMethod.indexOf(methodName) > -1) {
110-
this.$emit("input", this.editor.getValue());
110+
this.$emit('input', this.editor.getValue());
111111
}
112112
}
113113

src/Viewer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<div ref="tuiEditorViewer"></div>
33
</template>
44
<script>
5-
import Editor from "tui-editor";
5+
import Editor from 'tui-editor';
66
7-
import editorEvents from "./editorEvents";
7+
import editorEvents from './editorEvents';
88
99
export default {
10-
name: "TuiEditorViewer",
10+
name: 'TuiEditorViewer',
1111
props: {
1212
height: {
1313
type: String

0 commit comments

Comments
 (0)