mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
small fixes and tweaks
This commit is contained in:
@@ -483,21 +483,6 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
}
|
||||
|
||||
async focusOnAttributesEvent({ntxId}) {
|
||||
if (this.noteContext.ntxId === ntxId) {
|
||||
if (this.$editor.is(":visible")) {
|
||||
this.$editor.trigger('focus');
|
||||
|
||||
this.textEditor.model.change(writer => { // put focus to the end of the content
|
||||
writer.setSelection(writer.createPositionAt(this.textEditor.model.document.getRoot(), 'end'));
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.triggerEvent('focusOnDetail', {ntxId: this.noteContext.ntxId});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async createNoteForReferenceLink(title) {
|
||||
const {note} = await noteCreateService.createNote(this.notePath, {
|
||||
activate: false,
|
||||
|
||||
Reference in New Issue
Block a user