Hi Arman,

It is not possible to directly influence the loading order of apps.

There is a way to load apps after the files app by using a technique
like the favorites plugin:
https://github.com/owncloud/core/blob/master/apps/files/js/favoritesplugin.js#L115

But in your case you want it after the text editor.

What are you trying to achieve ? Do you want to override the mime type
of the file action to make the latex editor pop up instead of the
regular text editor ?

One possible dirty hack would be to do this:
_.defer(_.defer(function() { // init your code }));

This would defer the running of your code to a later point, which
hopefully will be after the text editor.

Or a bit more advanced:

var initLatexEditor = function() {
   // check if the text editor has already registered its actions
   if (FileActions.actions.text && FileActions.actions.text.File) {
      // register the latex editor / initialize latex editor extensions
   }
   else {
      // try again at a later point
      _.defer(initLatexEditor);
   }
};

Cheers,

Vincent

On 18.01.2015 21:12, Arman Khalatyan wrote:
> Hi Chris!
> Wow interesting solution for css but not for js:(
> I am trying to fix my LatexCompiler against OC7/8, I found stupid
> solution by replacing app name in the apps folder.
> It is including now in the right way. but my app now is
> latexeditor(early it was files_latexeditor) F comes before L so it is
> including always after the files_texteditor.
>
> ***********************************************************
>
>  Dr. Arman Khalatyan              eScience -SuperComputing
>  Leibniz-Institut für Astrophysik Potsdam (AIP)
>  An der Sternwarte 16, 14482 Potsdam, Germany
>
> ***********************************************************
>
>
> On Sun, Jan 18, 2015 at 9:02 PM, Christian Reiner
> <[email protected]> wrote:
>> Hi Arman,
>> long time no see
>>
>> On Sunday 18 January 2015 20:24:08 Arman Khalatyan wrote:
>>> I wish that my Y APP is loaded after the X app.
>>> Is it possible to control the inclusion of css and js files?
>> The old FluXX-Compensator-(Y) did load some CSS file by modifying the page
>> header using JS. That made sure the rules set was loaded last which is of
>> importance for CSS. It even fires an on-load event on that CSS file which you
>> can use to start additional routines.
>>
>> Arkascha
>> _______________________________________________
>> User mailing list
>> [email protected]
>> http://mailman.owncloud.org/mailman/listinfo/user
> _______________________________________________
> User mailing list
> [email protected]
> http://mailman.owncloud.org/mailman/listinfo/user


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to