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
And it keeps saying "TypeError: Cannot read property 'match' of undefined" every time I load page with ace editor. Screenshot: http://imgur.com/jFsG1KP
[AngularJS]
var app = angular.module("cloude", ["ngRoute", "ace.angular"]);
It seems that error will not appear if I remove "ace.angular" so I guess it is problem with module?
The text was updated successfully, but these errors were encountered:
I get this error any time we init an instance of ace-editor. It doesn't seem to cause problems for our users but it is an error. Seems to happen on this function's match. this.$detectNewLine = function(e) { var t = e.match(/^.*?(\r\n|\r|\n)/m); this.$autoNewLine = t ? t[1] : "\n", this._signal("changeNewLineMode") }
Here's an example of how we init: <div class="form-control" style="height: 400px;" ace-editor="{ mode: 'json', onLoad: aceLoaded, require: ['ace/ext/language_tools'], advanced: { enableSnippets: true, enableBasicAutocompletion: true, enableLiveAutocompletion: true }}" ng-model="data"> </div>
I installed ace-angular with npm and created ace editor inside angular, it looks like this:
And it keeps saying "TypeError: Cannot read property 'match' of undefined" every time I load page with ace editor. Screenshot:
http://imgur.com/jFsG1KP
It seems that error will not appear if I remove "ace.angular" so I guess it is problem with module?
The text was updated successfully, but these errors were encountered: