Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Features/provide custom ace function #32

Conversation

kayhadrin
Copy link

Hi there,

First of all, thank you for taking the time to write this Angular+Ace integration directive.

I'm currently using it with a popup window in which I inject my own Angular template and scope.
That allows me to have an app that opens popup windows and still has the ability to use 2-way bindings with them.

So here's how I'm doing it:

  1. Include ace.js in the popup so that it can inject its own css/js properly
  2. Use the uiAce directive to show an ACE editor instance inside an angular template (+scope) that is injected in a popup window
  3. Modify the ui-ace.js code to allow using a custom ace function instead of the one in window.ace.
    This is because my ui-ace.js file was loaded from the main app's window (not the popup).
  4. When providing the config options to uiAce, I provide the popupWindow.ace function - which is the ace function from the popup's window object.

And it seems to work fine. :-)

So if you're interested, here's a pull request to add it to your arsenal.

Cheers,

David

Dean Sofer and others added 30 commits April 10, 2013 18:30
Updated Bower install locations
douglasduteil and others added 27 commits December 27, 2013 16:06
Data binding support added for ace options and JSDoc blocks added
  attribute
This is useful when using this directive inside a popup window that has
its own "ace" function.
@kayhadrin kayhadrin force-pushed the features/provide-custom-ace-function branch from 3c31172 to f613fc0 Compare September 16, 2014 02:50
@kayhadrin
Copy link
Author

Cancel this PR and re-opened it in #62 to rebase it on v0.1.1.

@kayhadrin kayhadrin closed this Sep 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants