aboutsummaryrefslogtreecommitdiff
path: root/src/edit.js
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-21 23:59:40 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-21 23:59:40 +0200
commit864e76566cffab3843a7f78518aa4dbaa0972e79 (patch)
treef636dd48431c24ccc2c2f1e6ae1afdc82ba2345b /src/edit.js
parent26c93a796eceb3de136695548ab80e5455bd932a (diff)
downloadwcms-864e76566cffab3843a7f78518aa4dbaa0972e79.tar.gz
wcms-864e76566cffab3843a7f78518aa4dbaa0972e79.zip
fix : linewrap for codemirror markdown
Diffstat (limited to 'src/edit.js')
-rw-r--r--src/edit.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit.js b/src/edit.js
index 6843fff..da5e79d 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -28,6 +28,7 @@ window.onload = () => {
CodeMirror.fromTextArea(document.getElementById('editmain'), {
mode: 'markdown',
lineNumbers: true,
+ lineWrapping: true,
}),
CodeMirror.fromTextArea(document.getElementById('editcss'), {
mode: 'css',
@@ -36,18 +37,22 @@ window.onload = () => {
CodeMirror.fromTextArea(document.getElementById('editheader'), {
mode: 'markdown',
lineNumbers: true,
+ lineWrapping: true,
}),
CodeMirror.fromTextArea(document.getElementById('editnav'), {
mode: 'markdown',
lineNumbers: true,
+ lineWrapping: true,
}),
CodeMirror.fromTextArea(document.getElementById('editaside'), {
mode: 'markdown',
lineNumbers: true,
+ lineWrapping: true,
}),
CodeMirror.fromTextArea(document.getElementById('editfooter'), {
mode: 'markdown',
lineNumbers: true,
+ lineWrapping: true,
}),
CodeMirror.fromTextArea(document.getElementById('editbody'), {
mode: 'htmlmixed',