How do I get value from ACE editor?

后端 未结 7 1151
一整个雨季
一整个雨季 2020-12-13 03:43

I am using ACE editor for the first time. I have the below questions related to it.

  1. How do I find the instance of ACE

7条回答
  •  囚心锁ツ
    2020-12-13 03:53

    var editor = AceEditor.getCurrentFileEditor("MyEditor");
    

    This would return the current editor object

    var code = editor.getValue();
    

    This would return the text within the editor.

提交回复
热议问题