Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-999

Create a directive to download (cache) pluginfiles

    XMLWordPrintable

Details

    • Hide
      1. Make sure of mmFormatText, mmBrowser and mmExternalContent using different URLs
      2. Check that you can invalide URLs
      3. Check that opening files locally and not locally works

      Note: mmExternalContent will convert URLs to PluginFile URLs. Invalidating URLs requires you to convert to PluginFile URLs first

      Alternatively, you can use the attached zip file.

      Show
      Make sure of mmFormatText, mmBrowser and mmExternalContent using different URLs Check that you can invalide URLs Check that opening files locally and not locally works Note: mmExternalContent will convert URLs to PluginFile URLs. Invalidating URLs requires you to convert to PluginFile URLs first Alternatively, you can use the attached zip file.
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      We need a directive to handle plugin files instead of doing it in mm-format-text. This directive can be added manually (in img tags defined by ourselves) or automatically inside mm-format-text.

      This comment shows an idea of how to do this.

      Please notice that mm-format-text needs to be modified to add this directive when it's needed. To do so, something like this needs to be done:

      angular.forEach(element.find('img'), function(el) {
          el.setAttribute('mm-no-input-validation', '');
          el = $compile(el)(scope);
      });
      

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              dpalou Dani Palou
              Dani Palou Dani Palou
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                31/Jul/15