benrbray / prosemirror-math

Schema and plugins for "first-class" math support in ProseMirror!
https://benrbray.com/prosemirror-math/
MIT License
249 stars 35 forks source link

Copy / Paste to Plain Text should Include Dollar Signs `$` #14

Closed benrbray closed 3 years ago

benrbray commented 3 years ago

At the moment, prosemirror-math relies on the default copy/paste behavior of ProseMirror, which simply calls textBetween on the current selection when copying. Since the $ symbols are just visual decorations in the editor, they don't appear as part of the text itself, and so will not appear when pasting from prosemirror-math into a plaintext editor.

benrbray commented 3 years ago

Resolved by 6c3e22ebfaa9700138f9e7020e4b2b154c8de674.

bohrium commented 3 years ago

hooooray!