diff --git a/src/public/app/widgets/type_widgets/read_only_text.js b/src/public/app/widgets/type_widgets/read_only_text.js
index c16715ea7..da997c65f 100644
--- a/src/public/app/widgets/type_widgets/read_only_text.js
+++ b/src/public/app/widgets/type_widgets/read_only_text.js
@@ -77,6 +77,11 @@ export default class ReadOnlyTextTypeWidget extends AbstractTextTypeWidget {
}
async doRefresh(note) {
+ // we load CKEditor also for read only notes because they contain content styles required for correct rendering of even read only notes
+ // we could load just ckeditor-content.css but that causes CSS conflicts when both build CSS and this content CSS is loaded at the same time
+ // (see https://github.com/zadam/trilium/issues/1590 for example of such conflict)
+ await libraryLoader.requireLibrary(libraryLoader.CKEDITOR);
+
const noteComplement = await treeCache.getNoteComplement(note.noteId);
this.$content.html(noteComplement.content);
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index fa607898c..3d7370e97 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -736,6 +736,7 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
padding: 10px;
border-radius: 10px;
background-color: var(--accented-background-color);
+ clear: both;
}
.include-note.ck-placeholder::before { /* remove placeholder in otherwise empty note */
diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs
index ef399712f..631c9ff2a 100644
--- a/src/views/desktop.ejs
+++ b/src/views/desktop.ejs
@@ -63,8 +63,6 @@
-
-
diff --git a/src/views/mobile.ejs b/src/views/mobile.ejs
index 7c7e6d92d..ec40a0a0a 100644
--- a/src/views/mobile.ejs
+++ b/src/views/mobile.ejs
@@ -128,8 +128,6 @@
-
-