You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use the example to alter the Ace Editor options with the following:
ngAfterViewInit(): void{constaceEditor=(<any>window).ace.edit(document.querySelector('#a'+this.editor.id+'>div'));// custom your ace hereaceEditor.setReadOnly(true);aceEditor.setFontSize('110pt');this.options.ace=aceEditor;this.editor.setOptions(this.options);}
However, when this is evaluated, I get the following error:
TypeError: undefined is not a function (evaluating '_ace.edit(this.editorDom)') (line 187) (so edit is not a defined function here it seems).
At first I thought it was because ngAfterViewInit would evaluate too early, so I tried with using a button to manually trigger this, but I get the same error.
Hi,
I've been trying to use the example to alter the Ace Editor options with the following:
However, when this is evaluated, I get the following error:
TypeError: undefined is not a function (evaluating '_ace.edit(this.editorDom)') (line 187)
(soedit
is not a defined function here it seems).At first I thought it was because
ngAfterViewInit
would evaluate too early, so I tried with using a button to manually trigger this, but I get the same error.This has been tested with:
I suppose you could easily reproduce by calling the
setAce
function in the unit-test of https://github.com/mariohmol/ang-jsoneditor/blob/master/src/app/demo/demo.component.ts.The text was updated successfully, but these errors were encountered: