diff --git a/src/utils/index.js b/src/utils/index.js
new file mode 100644
index 0000000..70ff744
--- /dev/null
+++ b/src/utils/index.js
@@ -0,0 +1,3 @@
+export function replaceNewlineWithBr(str) {
+ return str.replace(/\r?\n/g, '
')
+}
diff --git a/src/v-editor.vue b/src/v-editor.vue
index fb69121..99e50a1 100644
--- a/src/v-editor.vue
+++ b/src/v-editor.vue
@@ -2,7 +2,7 @@