Hello,
I'm working on developing a moodle plugin (no previous experience with Moodle plugins) to allow users to choose media from our external site and embed them in the page (using atto or tinymce). We a have an external tool setup https://docs.moodle.org/30/en/External_tool_settings which works well.
All the parts about working the the appropriate editor and embedding the resulting content is clear enough.
What I can't figure out is how to access our configured LTI tool from our plugin in order to open a popup window to select the media. Is there a way to do this? Do I instead have to write another plugin to do the lti integration instead of relying on the External Tool functionality?
When doing the same thing for canvas, we just needed to add some xml configuration when setting up the external tool:
<lticm:options name="editor_button"> <lticm:property name="enabled">true</lticm:property> <lticm:property name="url">Link to our external site</lticm:property> <lticm:property name="text">Media Chooser</lticm:property> <lticm:property name="selection_width">800</lticm:property> <lticm:property name="selection_height">600</lticm:property> </lticm:options>Unless I'm missing something, I don't think that particular option is available with Moodle, but I'm hoping there's some way to use our existing External Tool.
Any help is appreciated. And apologies if this isn't the right forum for this. If that's the case, I would appreciate knowing what is