From 13b8c0b7aeac365f0f161467f65c3b9b4e46896a Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 10 Nov 2020 19:16:30 +0000 Subject: Switch from SimpleMDE to EasyMDE (#13333) * Switch from SimpleMDE to EasyMDE Signed-off-by: Andrew Thornton * use webpack to webpack the easymde css Signed-off-by: Andrew Thornton * move css to only css Signed-off-by: Andrew Thornton * move loading codemirror modes and addons back in to footer.tmpl Signed-off-by: Andrew Thornton * Fix arc-green Signed-off-by: Andrew Thornton * as per @silverwind * reinstall codemirror Signed-off-by: Andrew Thornton Co-authored-by: Lauris BH --- web_src/js/easymde.js | 8 ++++++++ web_src/less/_editor.less | 2 +- web_src/less/themes/theme-arc-green.less | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 web_src/js/easymde.js (limited to 'web_src') diff --git a/web_src/js/easymde.js b/web_src/js/easymde.js new file mode 100644 index 0000000000..39ead02c13 --- /dev/null +++ b/web_src/js/easymde.js @@ -0,0 +1,8 @@ +import EasyMDE from 'easymde'; + +import CodeMirror from 'codemirror/lib/codemirror.js'; + +window.EasyMDE = EasyMDE; +window.SimpleMDE = EasyMDE; +window.CodeMirror = CodeMirror; + diff --git a/web_src/less/_editor.less b/web_src/less/_editor.less index e783267167..4ed211a628 100644 --- a/web_src/less/_editor.less +++ b/web_src/less/_editor.less @@ -29,7 +29,7 @@ opacity: 1 !important; } -.editor-toolbar a:not(:hover) { +.editor-toolbar button:not(:hover) { background-color: transparent !important; } diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index 7f989e1721..e7933e0cc0 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -1784,12 +1784,12 @@ a.ui.labels .label:hover { border-right-color: var(--color-secondary) !important; } -.editor-toolbar a { +.editor-toolbar button { color: #87ab63 !important; } -.editor-toolbar a.active, -.editor-toolbar a:hover { +.editor-toolbar button.active, +.editor-toolbar button:hover { background: #2a2e3a; border-color: transparent; } -- cgit v1.2.3