dokuwiki-plugin-prosemirror icon indicating copy to clipboard operation
dokuwiki-plugin-prosemirror copied to clipboard

Don't break up inline elements (general plugin support)

Open vic-t opened this issue 3 years ago • 1 comments

It seems clear to me that it's not realistic that the prosemirror WYSIWYG editor will support all possible plugins. Maybe if you integrated it as a standard into DW and made it easy for other developers to plug into the concept, they would do the necessary work themselves (IMHO, a proper WYSIWYG editor that can further be extended by plugins would be a killer feature).

In the meantime, it would be much appreciated if the prosemirror plugin could be taught not to break up inline code tags from other plugins.

For example, I noticed that inline elements such as <plugintag>Sometext</plugintag> will always be broken down to 5 lines by the prosemirror plugin, 2 of them empty. Specifically, I tried this with the note plugin as well as the nodisp plugin. So, <note>Testnote</note> becomes

<note>

TestNote

</note>

It's certainly not a deal breaker because the plugin functionality is (usually) not affected by that. Still, the code gets blown up for no good reason and becomes harder to read.

If it's too much work to leave it as inline code, maybe you could get rid of the two empty lines at least?

vic-t avatar May 02 '21 14:05 vic-t

I have similar issues with the mdpage plugin. It keeps spacing out all my excerpts that are in markdown.

Monklite avatar Aug 05 '21 23:08 Monklite