Skip to main content
Module

x/docxml/mod.ts>CommentsXml#add

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
method CommentsXml.prototype.add
import { CommentsXml } from "https://deno.land/x/docxml@5.0.1/mod.ts";

Add a comment to the DOCX file and return its new identifier. You should reference this identifier from the document using the Comment, CommentRangeStart and CommentRangeEnd components.

Parameters

meta: Omit<Comment, "id" | "contents">
contents: Comment["contents"]