aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/easymde.js
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-11-10 19:16:30 +0000
committerGitHub <noreply@github.com>2020-11-10 14:16:30 -0500
commit13b8c0b7aeac365f0f161467f65c3b9b4e46896a (patch)
treed5a748ae96c42f49a71cc4b9d648097fa88d2459 /web_src/js/easymde.js
parent21d496364a5e654ba535d06269f6c6679b5c2d74 (diff)
downloadgitea-13b8c0b7aeac365f0f161467f65c3b9b4e46896a.tar.gz
gitea-13b8c0b7aeac365f0f161467f65c3b9b4e46896a.zip
Switch from SimpleMDE to EasyMDE (#13333)
* Switch from SimpleMDE to EasyMDE Signed-off-by: Andrew Thornton <art27@cantab.net> * use webpack to webpack the easymde css Signed-off-by: Andrew Thornton <art27@cantab.net> * move css to only css Signed-off-by: Andrew Thornton <art27@cantab.net> * move loading codemirror modes and addons back in to footer.tmpl Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix arc-green Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind * reinstall codemirror Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'web_src/js/easymde.js')
-rw-r--r--web_src/js/easymde.js8
1 files changed, 8 insertions, 0 deletions
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;
+