mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add info on read only notes, #1088
This commit is contained in:
parent
e73dffad0b
commit
401a3f0ecb
@ -78,10 +78,8 @@ function setupGlobs() {
|
|||||||
|
|
||||||
const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";
|
const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";
|
||||||
|
|
||||||
$(document).on("click", "button[data-help-page]", e => {
|
$(document).on("click", "*[data-help-page]", e => {
|
||||||
const $button = $(e.target);
|
window.open(wikiBaseUrl + $(e.target).attr("data-help-page"), '_blank');
|
||||||
|
|
||||||
window.open(wikiBaseUrl + $button.attr("data-help-page"), '_blank');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$("body").on("click", "a.external", function () {
|
$("body").on("click", "a.external", function () {
|
||||||
@ -91,4 +89,4 @@ function setupGlobs() {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
setupGlobs
|
setupGlobs
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ const TPL = `
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="alert alert-warning no-print" style="margin-bottom: 0;">
|
<div class="alert alert-warning no-print" style="margin-bottom: 0;">
|
||||||
Read only code view is shown. <a href="#" class="edit-note">Click here</a> to edit the note.
|
<a href="#" class="external" data-help-page="Read-only-note" title="Help on Read only notes">Read only</a> code view is shown. <a href="#" class="edit-note">Click here</a> to edit the note.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<pre class="note-detail-read-only-code-content"></pre>
|
<pre class="note-detail-read-only-code-content"></pre>
|
||||||
@ -41,4 +41,4 @@ export default class ReadOnlyCodeTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
this.$content.text(noteComplement.content);
|
this.$content.text(noteComplement.content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ const TPL = `
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="alert alert-warning no-print">
|
<div class="alert alert-warning no-print">
|
||||||
Read only text view is shown. <a href="#" class="edit-note">Click here</a> to edit the note.
|
<a href="#" class="external" data-help-page="Read-only-note" title="Help on Read only notes">Read only</a> text view is shown. <a href="#" class="edit-note">Click here</a> to edit the note.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="note-detail-readonly-text-content ck-content"></div>
|
<div class="note-detail-readonly-text-content ck-content"></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user