我正在为Weebly创建拖动&拖放元素。 Weebly将每个元素包装在Backbone JS视图中,如explained here。 // My js file. PlatformElement is a Weebly-controlled object exposed to me.
PlatformElement.extend({
initialize: function() {
我想通过Ruby Watir在Weebly编辑器页面中拖放元素。 drag_from is the element which is to be dragged in editor page
drag_to is the element which is dropped to the editor
drag_from.driver.action.move_to(drag_from.wd).p