tinyMCE editor element

Usage

tinyMCE(inputId, content, options = NULL)

Arguments

inputId
id associated with the editor
content
editor content. May be a string or HTML embedded in an HTML function
options
string containing tinyMCE initialization options. See demos or source code on the [tinyMCE website](http://www.tinymce.com/tryit/basic.php) for more information.

Value

a tinyMCE editor element that can be included in a panel

Description

Display a tinyMCE editor within an application page.

Examples

# Basic editors tinyMCE('editor1', 'Click to edit text')
<div id="editor1" class="shinytinymce" style="resize: none; width: 100%; height: 100%; border-style: none; background: gainsboro;">Click to edit text</div> <script>tinymce.init({selector:".shinytinymce", });</script>
tinyMCE('editor1', HTML('<p><strong>Click</strong> to edit text</p>'))
<div id="editor1" class="shinytinymce" style="resize: none; width: 100%; height: 100%; border-style: none; background: gainsboro;"><p><strong>Click</strong> to edit text</p></div> <script>tinymce.init({selector:".shinytinymce", });</script>
# With options tinyMCE('editor1', 'This is an inline tinyMCE editor', 'inline: true')
<div id="editor1" class="shinytinymce" style="resize: none; width: 100%; height: 100%; border-style: none; background: gainsboro;">This is an inline tinyMCE editor</div> <script>tinymce.init({selector:".shinytinymce", inline: true});</script>