Hi Ivan,

assuming you have copied the

   QOOXDOO_PATH/application/playground/source/class/playground/view/Editor.js

to your application's source/class/myApp/ directory, and the files in

   QOOXDOO_PATH/application/playground/source/resouce/playground/editor/

to your applications source/resource/ directory and adapted the #asset()
directives in Application.js and Editor.js the following code in your
Applications.js file will work:

       var main = new qx.ui.container.Composite();
       main.setLayout(new qx.ui.layout.VBox());
       this.getRoot().add(main, { edge : 0 });

       var tabView = new qx.ui.tabview.TabView();
       var tabPage = new qx.ui.tabview.Page();
       tabPage.setLayout(new
       qx.ui.layout.VBox());
       tabView.add(tabPage);

       main.add(tabView);

       var editor = new ace.Editor();
       editor.init();

       tabPage.add(editor);

I get an error in the console about line 148 in Editor.js where there is a
call to setMode(), but I think this is because I am missing some files from
the playground code base.

Hope this helps you get started.

I think you can adapt Editor.js to your specific needs. Watch out for
__onEditorAppear() and where it is called in init(). In my previous eMail I
overlooked that you'd want to use addListenerOnce() instead of
addListener().

Cheers,
Fritz

On Thu, 18 Oct 2012, 689137 wrote:

> I am getting errors like Terminating on Terminal Exception and COuld not
> load worker.
>
> Can you please give me a complete example of a TabPage containing the ace
> editor, without using div? I would like it to have as little participation
> of html as possible.
>
> I am using ace source files as in Playground Application not from URL, but
> locally :
>
> Thank you,
> Ivan.

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to