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

Force text in sub elements to be movable #38

Open
cretace opened this issue Mar 10, 2014 · 1 comment
Open

Force text in sub elements to be movable #38

cretace opened this issue Mar 10, 2014 · 1 comment

Comments

@cretace
Copy link

cretace commented Mar 10, 2014

Is there any way to allow addtional text in a 'td' to be styled AND movable
I have a sub title separated with p tag - but when I click and move over that, the text is selected and no moving happens.
All I'm trying to do is restyle part of the text within the tr td p structure.

Theres comments on SO (re other plugins) to do:
ev.originalEvent.preventDefault();
but no dice ...

@iamamitnegi
Copy link

Here is the solution below

we have to allow universal HTML tag elements as blow:
Before :
jQuery(rows[i]).mousedown(function (ev) {
if (ev.target.tagName == "TD")

After:
jQuery(rows[i]).mousedown(function (ev) {
if (ev.target.tagName)

Please let me know if you have any issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants