Skip to content

NoteComposerPluginInstance.applyTemplate method

NoteComposerPluginInstance › applyTemplate

Unofficial

Apply a template to content, substituting title placeholders.

Signature:

applyTemplate(content: string, fromTitle: string, newTitle: string): Promise<string>

Parameters:

ParameterTypeDescription
contentstringThe template content.
fromTitlestringThe original note title.
newTitlestringThe new note title.

Returns: Promise<string>The processed content with substitutions applied.