mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
shortcuts use templates
This commit is contained in:
@@ -333,7 +333,7 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
|
||||
getPreprocessedData() {
|
||||
const str = this.textEditor.getData()
|
||||
.replace(/<a[^>]+href="(#[A-Za-z0-9/]*)"[^>]*>[^<]*<\/a>/g, "$1")
|
||||
.replace(/<a[^>]+href="(#[A-Za-z0-9_/]*)"[^>]*>[^<]*<\/a>/g, "$1")
|
||||
.replace(/ /g, " "); // otherwise .text() below outputs non-breaking space in unicode
|
||||
|
||||
return $("<div>").html(str).text();
|
||||
|
||||
Reference in New Issue
Block a user