-

+
+
+
+
+ {{> core/loading }}
+
+
{{#str}} loading, tiny_media {{/str}}
+
{{/body}}
{{$footer}}
-
-
+
{{/footer}}
{{/ core/modal }}
diff --git a/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert.mustache b/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert.mustache
new file mode 100644
index 00000000000..cc655ebd030
--- /dev/null
+++ b/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert.mustache
@@ -0,0 +1,54 @@
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see
.
+}}
+{{!
+ @template tiny_media/insert_image_modal_insert
+
+ Insert image body template.
+
+ Example context (json):
+ {
+ "showdropzone": true,
+ "showfilepicker": true
+ }
+
+}}
+
+
+ {{#showdropzone}}
+
+
+
+
+
+
{{#str}} draganddrop, tiny_media {{/str}}
+
+
+
+
+ {{/showdropzone}}
+ {{^showfilepicker}}
+
+
+
+
+
+
{{#str}} repositorynotpermitted, tiny_media {{/str}}
+
+
+ {{/showfilepicker}}
+
+
diff --git a/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert_footer.mustache b/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert_footer.mustache
new file mode 100644
index 00000000000..aa7e1434e96
--- /dev/null
+++ b/lib/editor/tiny/plugins/media/templates/insert_image_modal_insert_footer.mustache
@@ -0,0 +1,57 @@
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see
.
+}}
+{{!
+ @template tiny_media/insert_image_modal_insert_footer
+
+ Insert image footer template.
+
+ Example context (json):
+ {
+ "showdropzone": true,
+ "elementid": "exampleId",
+ "src": "https://moodle.org/logo.png",
+ "showfilepicker": true
+ }
+
+}}
+
+
+
+
+ {{#showdropzone}}
+
+ {{/showdropzone}}
+ {{^showdropzone}}
+
+ {{/showdropzone}}
+
+
+
+
+
+
+
+
+
+
+ {{#showfilepicker}}
+
+
+ {{/showfilepicker}}
+
+
+