Hi Olaf,

I would recommend using inject_html to inject the script that loads the
ace.js file.

The rest of the code in their example [2] seems to be part of the setup,
so it is probably better to have that in AS.  You may want to create a
typedefs library for the ACEEditor as well. See: [3] for an example of how
I did something similar.

HTH,
-Alex

[2] https://ace.c9.io/#nav=embedding
[3] 
https://github.com/apache/royale-tourjs/blob/develop/cordova/BatchScanner/B
atchScanner/src/main/resources/top.html


On 12/27/17, 2:03 PM, "Olaf Krueger" <m...@olafkrueger.net> wrote:

>Hi,
>I am working on our "Royale Try-it-now app" and would like to capture the
>JS
>ACE-Editor [1].
>(I first chose ACE over the Monaco editor cause ACE supports AS3 and
>latter
>does not support mobile)
>Thanks to Piotr's Patreon stuff I stumbled over the 'inject_html' feature
>but I am not sure if this is
>the way to go here.
>Could somebody point me in the right direction how to use ACE with Royale?
>
>Thanks,
>Olaf
>
>
>[1] 
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Face.c9.io
>%2F&data=02%7C01%7Caharui%40adobe.com%7Cd82c0ffc2d434994605c08d54d75b534%7
>Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636500090315084894&sdata=cnRKq
>FrBcVvaKSyySh6d%2FeTVbDq%2B6c0timcLpMMZBOE%3D&reserved=0
>
>
>
>--
>Sent from: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Cd82c0
>ffc2d434994605c08d54d75b534%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36500090315084894&sdata=99NDB9dC3e0WeZfhEYdwMTtlXpQU6ETQrHjqtNXxKW4%3D&res
>erved=0

Reply via email to