Skip to main content

Sync Content from One Bookmark Area to Another Bookmark

Code Example

async function example() {
const bookmark1 = await app.ActiveDocument.Bookmarks.item('bm1');
const content = await bookmark1.getContent();

// If syncing to bookmark in another document, call through the other document's app
const bookmark = await app.ActiveDocument.Bookmarks.item('bm2');
await bookmark.setContent(content.data);
}