[Owncloud] Owncloud Digest, Vol 31, Issue 37

Tom Needham tom at owncloud.com
Mon Sep 17 19:06:05 UTC 2012


Hi Arman,

> From: Arman Khalatyan <arm2arm at gmail.com>
> Subject: [Owncloud] Porting OC 4.0.5 application to OC 4.5betta3
> Date: 16 September 2012 19:01:33 GMT+01:00
> To: "<owncloud at kde.org> Mailinglist" <owncloud at kde.org>
> 
> 
> Can some one guide me how to port my LatexCompiler app  to 4.5 ?
> I need to catch edit/view event for the  MIME type latex/tex to be
> able to proceed further.
> In 4.0.5 I just modified code  from Text Editor app, but now I would
> like to do it in proper way...

See lines 307 to 316 in apps/files_texteditor/js/editor.js [1]

You need to register a javascript action that will be called when a user clicks on a file with the matching MIME type.

[1] https://github.com/owncloud/apps/blob/master/files_texteditor/js/editor.js#L307

Cheers,
Tom

Tom Needham
tom at owncloud.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120917/26f9c1d8/attachment.html>


More information about the Owncloud mailing list