Skip to main content
gonMiguel
Inspiring
December 16, 2013
Answered

Best Way to RICH HTML Editor on Air Desktop

  • December 16, 2013
  • 1 reply
  • 2553 views

Hi, actually i trying to get an WYSWYG editor to work on air.

Something like tinyMCE / ckeditor ( Like the one i´m using while writing this question).

I want to paste images there and work with tables  too...

For the moment, what i found is that i should use an stageWebView to load an html .... 

I made a html page and uploaded to my server.

It works if i go to the page via browser, but when i try to load it to the stagewebview , the editor is not there...

I´m flash CS6 and air desktop 3.9

Any idea on how this can be achieved ? Maybe another aproach ? Any component out there ?

Thanks in advance,

Gonçalo Miguel

This topic has been closed for replies.
Correct answer sinious

I would initially assume it's not working because TinyMCE may think it's running from the wrong path. The same way you must configure most of those editors to know "relatively" where its files are, TinyMCE may simply not be able to find its libraries. For example if you're using an invalid relative include like <script type="text/javascript" src="<your installation path>/tinymce/tinymce.min.js"></script> where <your installation path> is incorrect.

A quick way to find out is simply point to the script with a full address, http://www.yoursite.com/<your installation path/tinymce/tinymce.min.js

Just tried it quick, works for me:

And running local using File (with a wrapper HTML):

1 reply

sinious
siniousCorrect answer
Legend
December 16, 2013

I would initially assume it's not working because TinyMCE may think it's running from the wrong path. The same way you must configure most of those editors to know "relatively" where its files are, TinyMCE may simply not be able to find its libraries. For example if you're using an invalid relative include like <script type="text/javascript" src="<your installation path>/tinymce/tinymce.min.js"></script> where <your installation path> is incorrect.

A quick way to find out is simply point to the script with a full address, http://www.yoursite.com/<your installation path/tinymce/tinymce.min.js

Just tried it quick, works for me:

And running local using File (with a wrapper HTML):

gonMiguel
gonMiguelAuthor
Inspiring
December 17, 2013

Yes,

actually that was not the only problem, but help in the finding the awser .

Thank you

Very good,

so that we can share data between that view and as3 code with stageWebViewBridge !

sinious
Legend
December 17, 2013

You're welcome and for the others sake perhaps you'd like to share your findings. Was it simply addressing files with the File class in AIR or was it using Pedro's SWVB class?