Cannot Set this.editor.text
joeythelantern opened this issue · 1 comments
joeythelantern commented
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 :(
joeythelantern commented
Nevermind, I figured it out. It has to be SurveyJS proper JSON, as in something the editor can actually recognize.