Replies: 1 comment
-
|
Just stumbled across this ancient issue and I doubt this will help anyone, but I happen to have written a Craft 3 plugin to do just this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd love to have a button in Matrix block longform text fields—both WYSIWYG and, if possible, textarea—that will duplicate the Matrix block while splitting the textual content before and after the cursor position between the original and new blocks. This would allow easy insertion of images, pull quotes, and the like into the middle of existing text blocks.
If you're feeling really adventurous, then perhaps instead of merely splitting a block, you could have the button directly insert a block of the user's choice into the specified position (so if you choose to insert an
imageblock into the middle of atextblock, you'd end up with:text-image-text).Beta Was this translation helpful? Give feedback.
All reactions