Skip to content
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

Dropping at cursor #419

Open
timmyg opened this issue Dec 10, 2015 · 6 comments
Open

Dropping at cursor #419

timmyg opened this issue Dec 10, 2015 · 6 comments

Comments

@timmyg
Copy link

timmyg commented Dec 10, 2015

For some reason, when I drop something into the ST area it always drops at the end, rather than where my cursor is. I have a feeling it is because it regenerates the

tags or something (when I try to take away p tags in browser, they always come back).

Any thoughts on how I can hack this? Below is a codepen linkign to my (somewhat modified) sir-trevor.js

https://codepen.io/timmyg/pen/adOPbp

@raffij
Copy link
Contributor

raffij commented Dec 11, 2015

@timmyg yeah works with native contenteditable. I'd check with a default scribe element and see what happens.

@timmyg
Copy link
Author

timmyg commented Jan 19, 2016

@raffij any progress on this? would love to test/help

@timmyg
Copy link
Author

timmyg commented Feb 4, 2016

@raffij do you have an expected release date on this?

@raffij
Copy link
Contributor

raffij commented Feb 4, 2016

@timmyg The fix should be on master. It's on npm as beta3. I'll have a bit of time soon to cleanup a drag / drop branch that was going to modify the behaviour of this and fix another issue you had. https://github.com/madebymany/sir-trevor-js/tree/better-drag-and-drop This will be beta4. Then a quick mobile browser round of modifications will be needed for beta5 and we should be there for the moment.

@timmyg
Copy link
Author

timmyg commented Feb 4, 2016

@raffij awesome i will test it out next week!

@raffij raffij added the Bug label Feb 4, 2016
@timmyg
Copy link
Author

timmyg commented Feb 9, 2016

@raffij what is an example of a valid draggable element? Should this work on "text" block type?

@raffij raffij modified the milestones: v.0.6.0, v0.6.1, v0.6.2 Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants