Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

New code editor : ACE #435

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
3 participants
Member

douglasduteil commented Feb 15, 2013

Hi.

He is my ACE directive for AngularUI.

I drop my last implementation :

<ui-ace mode="css " onchange="changeInfo" show-gutter use-wrap-mode  ng-model="input"></ui-ace>

for a more common way :

<div ui-ace="{mode:'css', onChange: changeInfo, showGutter:true, useWrapMode:true}" ng-model="input" ></div>

Have you been able to get around the errors?

Could not load worker ace.js:1
{message: "SECURITY_ERR: DOM Exception 18", name: "SECURITY_ERR", code: 18, stack: "Error: An attempt was made to break through the se…cloudfront.net/src-min-noconflict/ace.js:1:76296)", INDEX_SIZE_ERR: 1…}

Member

douglasduteil commented Feb 21, 2013

Nope, this error: "An attempt was made to break through the security policy of the user agent."
come from the creation of a worker with a distante url in ace.js.
It's a « same origin restrictions » problem. I guess it could be fixed on local projects using ace.config.set("workerPath", "path/to/ace/src-min") (not tested)

Owner

ProLoser commented Apr 11, 2013

I pushed an initial version of this code to angular-ui/ui-ace but it needs to be cleaned up a bit.

Member

douglasduteil commented Apr 13, 2013

OK @ProLoser I did it, and I registered angular-ui-ace (and angular-ui-codemirror) on Bower.

Owner

ProLoser commented Apr 13, 2013

Cool thanks
On Apr 12, 2013 5:56 PM, "Douglas Duteil" notifications@github.com wrote:

OK @ProLoser https://github.com/ProLoser I did it, and I registered *
angular-ui-ace* (and angular-ui-codemirror) on Bowerhttp://sindresorhus.com/bower-components/
.


Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/angular-ui/pull/435#issuecomment-16324772
.

@ProLoser ProLoser closed this May 3, 2013

@douglasduteil douglasduteil deleted the unknown repository branch May 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment