mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	add links in ckeditor
This commit is contained in:
		@@ -7,8 +7,6 @@ const jumpToNote = (function() {
 | 
			
		||||
    const noteDetailEl = $('#note-detail');
 | 
			
		||||
 | 
			
		||||
    async function showDialog() {
 | 
			
		||||
        noteDetailEl.summernote('editor.saveRange');
 | 
			
		||||
 | 
			
		||||
        glob.activeDialog = dialogEl;
 | 
			
		||||
 | 
			
		||||
        autoCompleteEl.val('');
 | 
			
		||||
@@ -58,15 +56,9 @@ const jumpToNote = (function() {
 | 
			
		||||
            if (notePath) {
 | 
			
		||||
                dialogEl.dialog("close");
 | 
			
		||||
 | 
			
		||||
                noteDetailEl.summernote('editor.restoreRange');
 | 
			
		||||
 | 
			
		||||
                const noteId = treeUtils.getNoteIdFromNotePath(notePath);
 | 
			
		||||
 | 
			
		||||
                noteDetailEl.summernote('createLink', {
 | 
			
		||||
                    text: noteTree.getNoteTitle(noteId),
 | 
			
		||||
                    url: 'app#' + notePath,
 | 
			
		||||
                    isNewWindow: true
 | 
			
		||||
                });
 | 
			
		||||
                link.addLinkToEditor(noteTree.getNoteTitle(noteId), '#' + notePath);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        else if (action === 'add-current-as-child') {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user