New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot drag shortcaked shortcode #51
Comments
Yep, I don't believe we've addressed this yet. |
The same is true for all mce views such as embeds so maybe this is something for core. Only reliable way to do it would be to extend the toolbar buttons with a handle you can click and drag. |
This sounds like a good way to do it :) Something we could trial in Shortcake, and then contribute upstream. |
Related core ticket: https://core.trac.wordpress.org/ticket/28003 |
My initial experiments were unsuccessful - image dragging is a special case I'm going to try a different approach with simple up/down arrows. Robert O'Rourke |
I've spoken to a few people about this - and it is indeed an issue in the core implementation of media views. I know that there is a plan to support views like this in TinyMCE - perhaps this is a reason that they have been reluctant to try and work around this in WordPress? |
Has anything changed now that https://core.trac.wordpress.org/ticket/28003 has landed? |
Not sure. Can you test? |
Sorry, wasn't clear. I have tested and although images with captions can be dragged now nothing has changed for shortcake views. What I was wondering is if this might have paved the way as I haven't understood yet where exactly the problem is. |
@danielbachhuber I'm sure not ;) |
This seems like a key feature that would make the shortcodes behave like content blocks. |
Cutting and pasting (using keyboard shortcuts) is the only possible way to reorder in the visual editor view. Drag and dropping using a Move icon in the tooltip would definitely provide a better user experience. |
Yeah I'd love to support this. Thanks for linking to that trac ticket - it looks like it specifically refers to images being dragged, and will not just automatically work for all MCE views. However could be a good start - i'll look into this. |
🎉 Support for this has landed in core as of https://core.trac.wordpress.org/changeset/37446! |
Hello
Maybe a feature request more than a bug.
When a shortcode have been inserted, it is not possible to move it through the article like images.
The text was updated successfully, but these errors were encountered: