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

ui-ace lucene mode dropping module because define wasn't a string. #168

Open
brunopistone opened this issue Mar 17, 2017 · 0 comments
Open

Comments

@brunopistone
Copy link

brunopistone commented Mar 17, 2017

Hi guys, first of all I want to say that angular ui ace works really good! Congrats.
Next there is my problem. I want to use the lucene mode in my ui-ace editor. So following the guide, I create <div ui-ace="{ useWrapMode : true, mode: 'lucene' }" ng-model="query.text" style="min-height: 200px;"/> </div>
and before I have inserted the scripts:
`<script type="text/javascript" src="js/ace.js"></script>

<script type="text/javascript" src="js/ui-ace.js"></script> <script type="text/javascript" src="js/mode-lucene.js"></script>`

But there is this problem in the console:

dropping module because define wasn't a string.

I saw the issue #23 and i follow what was written, so in my mode-lucene.js I have inserted the following line:

window.define = window.define || ace.define;

and in my angular.module.js

ace.config.set("modePath", "./");

but I still had the problem. So I tried with
ace.config.set("modePath", "js/");

and later I tried to insert this line in the directive of the page that uses ui-ace, but nothing.
Any idea? Thanks a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant