mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 fix lazy-loading of CodeMirror interfering with editor (#717)
closes https://github.com/TryGhost/Ghost/issues/8488 - don't lazy-load the CodeMirror styles in `gh-cm-editor` as they are already loaded and overridden
This commit is contained in:
parent
51a8f0a21f
commit
c74662538a
2 changed files with 8 additions and 1 deletions
|
@ -29,7 +29,9 @@ const CmEditorComponent = Component.extend(InvokeActionMixin, {
|
|||
let loader = this.get('lazyLoader');
|
||||
|
||||
RSVP.all([
|
||||
loader.loadStyle('codemirror', 'assets/codemirror/codemirror.css'),
|
||||
// NOTE: no need to load the styles because we're already pulling
|
||||
// them in via SimpleMDE and it causes conflicts with the editor
|
||||
// loader.loadStyle('codemirror', 'assets/codemirror/codemirror.css'),
|
||||
loader.loadScript('codemirror', 'assets/codemirror/codemirror.js')
|
||||
]).then(() => {
|
||||
scheduleOnce('afterRender', this, function () {
|
||||
|
|
|
@ -329,6 +329,11 @@ pre tt {
|
|||
font-size: inherit;
|
||||
}
|
||||
|
||||
.CodeMirror pre {
|
||||
font-family: var(--font-family-mono);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
kbd {
|
||||
display: inline-block;
|
||||
margin-bottom: 0.4em;
|
||||
|
|
Loading…
Add table
Reference in a new issue