Opened 11 years ago
Last modified 11 years ago
#10525 assigned Bug
print does not work in AIR
Reported by: | Andros | Owned by: | Jakub Ś |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
When I load CKEditor in a StageWebView class in Adobe AIR, the print function does not work. It does nothing at all. Same version of CKEditor in other browsers - printing works.
Also, hinting, when hovering over a button does not work.
Attachments (1)
Change History (3)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.1.1 → 3.0 |
Changed 11 years ago by
comment:2 Changed 11 years ago by
Owner: | set to Jakub Ś |
---|---|
Status: | confirmed → assigned |
@Andros I have attached proof-of-concept with quick sample implementation taken from one of links (Surely this can be done better).
You can go to https://github.com/ckeditor/ckeditor-dev for your own copy of editor modify or exchange plugin file. Next you can build release according to http://docs.ckeditor.com/#!/guide/dev_build and printing should work in Adobe AIR.
I will try to work on this ticket later.
It turns out Adobe AIR doesn't support window.print(). Please see e.g. http://stackoverflow.com/questions/118990/what-are-the-print-functions-in-adobe-air
PrintJob has to be used instead: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/printing/PrintJob.html
Here are some sample implementations: https://gist.github.com/drmartin1998/878332
http://snipplr.com/view/4942/as3-flash-printing-basics/
http://snipplr.com/view/4942/as3-flash-printing-basics/
http://anirudhsasikumar.net/blog/2008.02.15.html