verbb / vizy

A flexible visual editor for Craft CMS
Other
44 stars 8 forks source link

Paste as plain text #186

Closed anvart closed 1 year ago

anvart commented 1 year ago

Question

In Redactor there's a lovely pastePlainText: true option. I could not find anything similar in Vizy. Is there any chance Vizy has (will have) this feature?

Additional context

No response

engram-design commented 1 year ago

Should be more achievable when we handle https://github.com/verbb/vizy/issues/183 but there's also fortunately some ProseMirror events we can use to make this happen.

anvart commented 1 year ago

@engram-design thank you for the answer. Looking forward to the feature! It's the only missing one that stops me from using the plugin.

I'm not sure if the issue should be closed or left open

engram-design commented 1 year ago

Yep, we'll keep this open to track progress.

engram-design commented 1 year ago

One thing worth asking, is actually how you see this behaviour to work? The pastePlainText for Redactor isn't something I've used before. Is that a config setting that enforces everything pasted in the field to be plain text?

I should note that you can paste plain text with the Ctrl/Cmd + Shift + V keyboard shortcut right now. That's a pretty common shortcut for most software out there.

anvart commented 1 year ago

@engram-design well, yes, OS-wide shortcut is well known, but not for everyone. Clients make mess sometimes.

Thanks for handling the issue.

engram-design commented 1 year ago

Added in 2.1.0