Skip to content

Commit 84feec2

Browse files
committed
Merge branch 'stable'
# Conflicts: # package-lock.json
2 parents bfb8aa6 + 3035473 commit 84feec2

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

libraries/ckeditor/ckeditor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/ckeditor/ckeditor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "trilium",
33
"productName": "Trilium Notes",
44
"description": "Trilium Notes",
5-
"version": "0.63.3",
5+
"version": "0.63.5",
66
"license": "AGPL-3.0-only",
77
"main": "electron.js",
88
"bin": {

src/becca/entities/battachment.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const protectedSessionService = require('../../services/protected_session.js');
88
const log = require('../../services/log.js');
99

1010
const attachmentRoleToNoteTypeMapping = {
11-
'image': 'image'
11+
'image': 'image',
12+
'file': 'file'
1213
};
1314

1415
/**

src/public/app/services/utils.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,14 @@ function areObjectsEqual () {
487487
}
488488

489489
function copyHtmlToClipboard(content) {
490-
const clipboardItem = new ClipboardItem({
491-
'text/html': new Blob([content], {type: 'text/html'}),
492-
'text/plain': new Blob([content], {type: 'text/plain'})
493-
});
494-
495-
navigator.clipboard.write([clipboardItem]);
490+
function listener(e) {
491+
e.clipboardData.setData("text/html", content);
492+
e.clipboardData.setData("text/plain", content);
493+
e.preventDefault();
494+
}
495+
document.addEventListener("copy", listener);
496+
document.execCommand("copy");
497+
document.removeEventListener("copy", listener);
496498
}
497499

498500
/**

src/services/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { buildDate:"2024-03-03T06:58:18+01:00", buildRevision: "0ad337c8e806ba84d48d7b97aa46df52d9f236a8" };
1+
module.exports = { buildDate:"2024-03-28T07:11:39+01:00", buildRevision: "399458b52f250b22be22d980a78de0b3390d7521" };

src/share/content_renderer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ function renderText(result, note) {
105105

106106
if (result.content.includes(`<span class="math-tex">`)) {
107107
result.header += `
108-
<script src="../../${assetPath}/node_modules/katex/dist/katex.min.js"></script>
109-
<link rel="stylesheet" href="../../${assetPath}/node_modules/katex/dist/katex.min.css">
110-
<script src="../../${assetPath}/node_modules/katex/dist/contrib/auto-render.min.js"></script>
111-
<script src="../../${assetPath}/node_modules/katex/dist/contrib/mhchem.min.js"></script>
108+
<script src="../${assetPath}/node_modules/katex/dist/katex.min.js"></script>
109+
<link rel="stylesheet" href="../${assetPath}/node_modules/katex/dist/katex.min.css">
110+
<script src="../${assetPath}/node_modules/katex/dist/contrib/auto-render.min.js"></script>
111+
<script src="../${assetPath}/node_modules/katex/dist/contrib/mhchem.min.js"></script>
112112
<script>
113113
document.addEventListener("DOMContentLoaded", function() {
114114
renderMathInElement(document.getElementById('content'));

0 commit comments

Comments
 (0)