I'd suggest looking at the docs here: https://docs.moodle.org/311/en/External_tool_settings
Look for "Launch container" - that deals with the various modes like embed, new window/tab, etc.
Hope that helps.
Jake
Look for "Launch container" - that deals with the various modes like embed, new window/tab, etc.
Hope that helps.
Jake