mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 00:45:22 +02:00
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>
This commit is contained in:
parent
21d496364a
commit
13b8c0b7ae
11 changed files with 53 additions and 48 deletions
8
web_src/js/easymde.js
Normal file
8
web_src/js/easymde.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import EasyMDE from 'easymde';
|
||||
|
||||
import CodeMirror from 'codemirror/lib/codemirror.js';
|
||||
|
||||
window.EasyMDE = EasyMDE;
|
||||
window.SimpleMDE = EasyMDE;
|
||||
window.CodeMirror = CodeMirror;
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.editor-toolbar a:not(:hover) {
|
||||
.editor-toolbar button:not(:hover) {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue