Problem/Motivation
When Markdown is enabled, the Drupal Media plugin from core is not working, as the <drupal-media> is stripped away.
Steps to reproduce
Install this module following the instructions from module page.
Create a new text format with markdown support.
Add the media insert toolbar item.
Try to add media and save.
Observe that media reference is not saved.
Proposed resolution
Create a plugin to bypass <drupal-media> when Markdown and DrupalMedia plugins are enabled.
Issue fork ckeditor5_markdown_editor-3575782
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
a.dmitriiev commented@breidert was involved in the initial implementation and concept.
Comment #4
a.dmitriiev commentedComment #5
breidert commentedI tested it locally, it works fine.
For testing I added the patch to
composer.jsonof a local Drupal installation.Then I re-applied the patches.
After this I was able to insert media elements in CKEditor with Markdown enabled. After saving and re-opening the edit form the media elements was still there.
Comment #6
sebastixAwesome, thanks for this contribution.
I haven't found the time yet to give it a deep-dive looking into every piece.
Here are some my first thoughts