mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 08:39:57 +01:00
add links in ckeditor
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
const recentNotes = (function() {
|
||||
const dialogEl = $("#recent-notes-dialog");
|
||||
const selectBoxEl = $('#recent-notes-select-box');
|
||||
const jumpToButtonEl = $('#recentNotesJumpTo');
|
||||
const addLinkButtonEl = $('#recentNotesAddLink');
|
||||
const jumpToButtonEl = $('#recent-notes-jump-to');
|
||||
const addLinkButtonEl = $('#recent-notes-add-link');
|
||||
const addCurrentAsChildEl = $("#recent-notes-add-current-as-child");
|
||||
const addRecentAsChildEl = $("#recent-notes-add-recent-as-child");
|
||||
const noteDetailEl = $('#note-detail');
|
||||
@@ -31,8 +31,6 @@ const recentNotes = (function() {
|
||||
function showDialog() {
|
||||
glob.activeDialog = dialogEl;
|
||||
|
||||
noteDetailEl.summernote('editor.saveRange');
|
||||
|
||||
dialogEl.dialog({
|
||||
modal: true,
|
||||
width: 800
|
||||
@@ -84,13 +82,7 @@ const recentNotes = (function() {
|
||||
|
||||
dialogEl.dialog("close");
|
||||
|
||||
noteDetailEl.summernote('editor.restoreRange');
|
||||
|
||||
noteDetailEl.summernote('createLink', {
|
||||
text: linkTitle,
|
||||
url: 'app#' + notePath,
|
||||
isNewWindow: true
|
||||
});
|
||||
link.addLinkToEditor(linkTitle, '#' + notePath);
|
||||
}
|
||||
|
||||
async function addCurrentAsChild() {
|
||||
|
||||
Reference in New Issue
Block a user