TableDnD icon indicating copy to clipboard operation
TableDnD copied to clipboard

Force text in sub elements to be movable

Open cretace opened this issue 10 years ago • 1 comments

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 ...

cretace avatar Mar 10 '14 12:03 cretace

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

iamamitnegi avatar Jan 13 '15 09:01 iamamitnegi