diff --git a/libs/src/LSPlugin.ts b/libs/src/LSPlugin.ts index 7be59ada02..2014adc65e 100644 --- a/libs/src/LSPlugin.ts +++ b/libs/src/LSPlugin.ts @@ -794,6 +794,7 @@ export interface IEditorProxy extends Record { setBlockIcon: (blockId: BlockIdentity, iconType: 'tabler-icon' | 'emoji', iconName: string) => Promise removeBlockIcon: (blockId: BlockIdentity) => Promise addPropertyValueChoices: (propertyId: BlockIdentity, choices: Array) => Promise + setPropertyNodeTags: (propertyId: BlockIdentity, tagIds: Array) => Promise prependBlockInPage: ( page: PageIdentity, diff --git a/src/main/logseq/api/db_based.cljs b/src/main/logseq/api/db_based.cljs index b540950a25..6446b7298d 100644 --- a/src/main/logseq/api/db_based.cljs +++ b/src/main/logseq/api/db_based.cljs @@ -385,4 +385,18 @@ (defn add-property-value-choices [property-id ^js choices] (when-let [values (and property-id (bean/->clj choices))] (db-property-handler/add-existing-values-to-closed-values! - property-id values))) \ No newline at end of file + property-id values))) + +(defn set-property-node-tags [property-id ^js tag-ids] + (let [tag-ids (and property-id (seq (bean/->clj tag-ids)))] + (p/let [repo (state/get-current-repo) + property (db-async/