Browse Source

Fix markdown.

pull/572/head
Sebastian 5 years ago
parent
commit
cb117b03f0
  1. 3
      frontend/app/shared/components/forms/markdown-editor.component.scss
  2. 2
      frontend/app/shared/components/forms/markdown-editor.component.ts

3
frontend/app/shared/components/forms/markdown-editor.component.scss

@ -3,7 +3,10 @@ $background: #fff;
:host ::ng-deep { :host ::ng-deep {
// sass-lint:disable class-name-format // sass-lint:disable class-name-format
.CodeMirror { .CodeMirror {
box-sizing: content-box;
height: 300px; height: 300px;
padding-bottom: 10px;
padding-top: 0;
} }
} }

2
frontend/app/shared/components/forms/markdown-editor.component.ts

@ -90,6 +90,8 @@ export class MarkdownEditorComponent extends StatefulControlComponent<State, str
return marked(text, { pedantic: true }); return marked(text, { pedantic: true });
}, },
autoDownloadFontAwesome: true, autoDownloadFontAwesome: true,
spellChecker: false,
status: true,
toolbar: [ toolbar: [
{ {
name: 'bold', name: 'bold',

Loading…
Cancel
Save