surveyjs/surveyjs_react_quickstart

Cannot Set this.editor.text

joeythelantern opened this issue · 1 comments

using your boilerplate, I try to set this.editor.text after I initialize the editor, like so:

SurveyJSEditor.StylesManager.applyTheme("darkblue");
this.editor = new SurveyJSEditor.SurveyEditor("surveyEditorContainer", editorOptions);
this.editor.text = "";

But it does not change anything. I have tried Different Strings, stringified JSON, normal JSON with no luck :(

Nevermind, I figured it out. It has to be SurveyJS proper JSON, as in something the editor can actually recognize.