| am_text_content | R Documentation |
Retrieve the full text content from a text object as a string.
am_text_content(text_obj)
text_obj |
An Automerge text object ID |
Character string with the full text
doc <- am_create()
am_put(doc, AM_ROOT, "doc", am_text("Hello"))
text_obj <- am_get(doc, AM_ROOT, "doc")
text <- am_text_content(text_obj)
text # "Hello"
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.