editor | R Documentation |
Create an interactive editor
editor(
...,
getMarkdownOnChange = TRUE,
getHTMLOnChange = TRUE,
width = NULL,
height = NULL,
elementId = NULL
)
... |
Options for the editor, see examples or online reference. |
getMarkdownOnChange , getHTMLOnChange |
Get editor's content in Shiny application through an input value : |
height , width |
Height and width for the chart. |
elementId |
An optional id. |
An editor
htmlwidget.
# Default is markdown editor with tab to switch to preview
editor()
# equivalent to
editor(previewStyle = "tab")
# Show preview side by side
editor(previewStyle = "vertical")
# Default edit type is markdown
editor(initialEditType = "markdown")
# Change to wysiwyg and remove switch mode option
editor(initialEditType = "wysiwyg", hideModeSwitch = TRUE)
# i18n : change language
editor(language = "fr")
editor(language = "ar")
# see https://github.com/nhn/tui.editor/blob/master/docs/en/i18n.md for other supported languages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.