mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
add replacement feature for code note
This commit is contained in:
@@ -164,7 +164,7 @@ export default class FindWidget extends NoteContextAwareWidget {
|
||||
this.$widget.show();
|
||||
this.$input.focus();
|
||||
const isReadOnly = await this.noteContext.isReadOnly();
|
||||
if (this.note.type === 'text' && !isReadOnly) {
|
||||
if (['text', 'code'].includes(this.note.type) && !isReadOnly) {
|
||||
this.$replaceWidgetBox.show();
|
||||
}else{
|
||||
this.$replaceWidgetBox.hide();
|
||||
|
||||
Reference in New Issue
Block a user