+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['alignment'] = 'Alignment';
+$string['alignment_bottom'] = 'Bottom';
+$string['alignment_left'] = 'Left';
+$string['alignment_middle'] = 'Middle';
+$string['alignment_right'] = 'Right';
+$string['alignment_top'] = 'Top';
+$string['browserepositories'] = 'Browse repositories...';
+$string['constrain'] = 'Auto size';
+$string['enteralt'] = 'Describe this image for someone who cannot see it';
+$string['enterurl'] = 'Enter URL';
+$string['height'] = 'Height';
+$string['helplinktext'] = 'Moodle Media Helper';
+$string['imagebuttontitle'] = 'Moodle Image';
+$string['imageurlrequired'] = 'An image must have a URL.';
+$string['imageproperties'] = 'Image properties';
+$string['presentation'] = 'This image is decorative only';
+$string['presentationoraltrequired'] = 'An image must have a description, unless it is marked as decorative only.';
+$string['privacy:metadata'] = 'The media plugin for TinyMCE does not store any personal data.';
+$string['pluginname'] = 'Tiny Media plugin for Moodle';
+$string['privacy:metadata'] = 'The media plugin for TinyMCE does not store any personal data.';
+$string['saveimage'] = 'Save image';
+$string['size'] = 'Size';
+$string['width'] = 'Width';
diff --git a/lib/editor/tiny/plugins/media/templates/image.mustache b/lib/editor/tiny/plugins/media/templates/image.mustache
new file mode 100644
index 0000000000000..3b7d3af67f659
--- /dev/null
+++ b/lib/editor/tiny/plugins/media/templates/image.mustache
@@ -0,0 +1,34 @@
+{{!
+ 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/image
+
+ Image template.
+
+ Example context (json):
+ {
+
+ }
+}}
+
diff --git a/lib/editor/tiny/plugins/media/templates/insert_image.mustache b/lib/editor/tiny/plugins/media/templates/insert_image.mustache
new file mode 100644
index 0000000000000..49be585d3b312
--- /dev/null
+++ b/lib/editor/tiny/plugins/media/templates/insert_image.mustache
@@ -0,0 +1,104 @@
+{{!
+ 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
+
+ Insert image template.
+
+ Example context (json):
+ {
+
+ }
+}}
+
diff --git a/lib/editor/tiny/plugins/media/version.php b/lib/editor/tiny/plugins/media/version.php
new file mode 100644
index 0000000000000..e2f4250a07ea2
--- /dev/null
+++ b/lib/editor/tiny/plugins/media/version.php
@@ -0,0 +1,29 @@
+.
+
+/**
+ * Tiny media plugin version details.
+ *
+ * @package tiny_media
+ * @copyright 2022 Huong Nguyen
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2022062700;
+$plugin->requires = 2021052500;
+$plugin->component = 'tiny_media';