mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
provide H4-H6, fixes #177
This commit is contained in:
parent
22e905aa99
commit
50cd0c792c
@ -18,16 +18,7 @@ async function show() {
|
|||||||
// textEditor might have been initialized during previous await so checking again
|
// textEditor might have been initialized during previous await so checking again
|
||||||
// looks like double initialization can freeze CKEditor pretty badly
|
// looks like double initialization can freeze CKEditor pretty badly
|
||||||
if (!textEditor) {
|
if (!textEditor) {
|
||||||
textEditor = await BalloonEditor.create($noteDetailText[0], {
|
textEditor = await BalloonEditor.create($noteDetailText[0]);
|
||||||
heading: {
|
|
||||||
options: [
|
|
||||||
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
|
||||||
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
|
|
||||||
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' },
|
|
||||||
{ model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onNoteChange(noteDetailService.noteChanged);
|
onNoteChange(noteDetailService.noteChanged);
|
||||||
}
|
}
|
||||||
|
2
src/public/libraries/ckeditor/ckeditor.js
vendored
2
src/public/libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,14 @@
|
|||||||
|
/* We change h5 and h6 because by default (bootstrap) they are smaller than normal text */
|
||||||
|
h5 {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
margin: 0 auto; /* center */
|
margin: 0 auto; /* center */
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user