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

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      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

              Assignee:
              fred Frédéric Massart
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Dani Palou Dani Palou
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Jul/15