I have created one module in Joomla and added one form field of the type editor inside the manifest-XML.
<field type="editor" name="myeditor" default="" buttons="true" hide="pagebreak,readmore" label="MOD_TEST" description="MOD_TEST_DESC" filter="safehtml" />
It is possible to insert an image via this editor.
Everything works fine in the front end view, if there is no submenu. I mean: If the URL is
joomla-cms/ the images are shown correcly.
But if the URL is
joomla-cms/index.php/home/mysubmenu because I view the module in a submenu. The picture link is broken.
I had a look at the Joomla Core Module
mod_custom. This module uses the tag
<customContent />. I think I can not use this tag, because I need more than one editor field in my module.
One other solution would be to enter image path absolute. I do not want that. Is there another solution?