mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Resolves #4905: Apply monospace font to code dialog in Rich Text editor
This commit is contained in:
parent
dc9bb26c1a
commit
e9f5ca817b
@ -442,6 +442,16 @@ const TinyMCE = (props: NoteBodyEditorProps, ref: any) => {
|
||||
background-color: ${theme.backgroundColor} !important;
|
||||
}
|
||||
|
||||
/*
|
||||
When creating dialogs, TinyMCE doesn't seem to offer a way to style the components or to assign classes to them.
|
||||
We want the code dialog box text area to be monospace, and since we can't target this precisely, we apply the style
|
||||
to all textareas of all dialogs. As I think only the code dialog displays a textarea that should be fine.
|
||||
*/
|
||||
|
||||
.tox .tox-dialog textarea {
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
}
|
||||
|
||||
.tox .tox-editor-header {
|
||||
border: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user