updateAceEditor: Update Ace Editor

Description Usage Arguments Author(s) Examples

Description

Update the styling or mode of an aceEditor component.

Usage

1
2
updateAceEditor(session, editorId, value, theme, readOnly, mode, fontSize,
  wordWrap, border = c("normal", "alert", "flash"))

Arguments

session

The Shiny session to whom the editor belongs

editorId

The ID associated with this element

value

The initial text to be contained in the editor.

mode

The Ace mode to be used by the editor. The mode in Ace is often the programming or markup language that you're using and determines things like syntax highlighting and code folding. Use the getAceModes function to enumerate all the modes available.

theme

The Ace theme to be used by the editor. The theme in Ace determines the styling and coloring of the editor. Use getAceThemes to enumerate all the themes available.

readOnly

If set to TRUE, Ace will disable client-side editing. If FALSE (the default), it will enable editing.

fontSize

If set, will update the font size (in px) used in the editor. Should be an integer.

wordWrap

If set to TRUE, Ace will enable word wrapping. Default value is FALSE.

Author(s)

Jeff Allen jeff@trestletech.com

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 shinyServer(function(input, output, session) {
   observe({
     updateAceEditor(session, "myEditor", "Updated text for editor here",
       mode="r", theme="ambiance")
   })
 }

## End(Not run)

skranz/shinyAce2 documentation built on May 30, 2019, 3:02 a.m.