Editor
Extends:
Editor is a React Component that create the Ace Editor in the DOM.
Member Summary
| Public Members | ||
| public | 
       refreshText: *  | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       Called when the Editor is mounted (component has been rendererd to the DOM)  | 
    |
| public | 
      
       | 
    |
| public | 
      
       Called when the Edtior is unmounting (Being removed from the DOM)  | 
    |
| public | 
       onLoad() Called when the editor is loaded.  | 
    |
| public | 
       render(): * Creates the editor in the DOM  | 
    |
Public Members
public refreshText: * source
Public Methods
public componentDidMount() source
Called when the Editor is mounted (component has been rendererd to the DOM)
It sets custom completer of MYR API to editor, and add listener to check whether user have unsaved changes.
public componentDidUpdate() source
public componentWillUnmount() source
Called when the Edtior is unmounting (Being removed from the DOM)
Editor will unmount when MYR enters ViewOnly mode, and we want to render whatever the code that's in the editor.
public onLoad() source
Called when the editor is loaded. It sets options to set the maximum error editor accepts and set the EMCAScript version to 6