rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
548 stars 128 forks source link

contenteditable within sortable not working #178

Closed Jeff-14159 closed 7 years ago

Jeff-14159 commented 7 years ago

If there is a contenteditable="true" nested somewhere within a sortable loop that content editable is broken...

not sure but if you are checking the nodeType to see if we can click and move it can we first verify if it has the attribute contenteditable="true" then can we treat it like an input element???

IE 11 with knockout-sortable@0.14.1

Thanks, Jeff

Jeff-14159 commented 7 years ago

please remove this issue... found to be issue with jqueryUI sortable.... need to add:

ko.bindingHandlers.sortable.options.cancel = 'input, button, .wysiwyg-editor'

Thanks, Jeff

rniemeyer commented 7 years ago

@Jeff-14159 - sounds good - glad that you found your issue.