Roo.HtmlEditorCore.swapCodes =[
- [ 8211, "--" ],
- [ 8212, "--" ],
+ [ 8211, "–" ],
+ [ 8212, "—" ],
[ 8216, "'" ],
[ 8217, "'" ],
[ 8220, '"' ],
}
},
- layout : function(initialRender, is2ndPass){
+ layout : function(initialRender, is2ndPass)
+ {
var g = this.grid;
var auto = g.autoHeight;
var scrollOffset = 16;
}
- if(rowIndex !== false){
+ var sels = sm.getSelections ? sm.getSelections() : (
+ sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []);
+
+ // before it used to all dragging of unseleted... - now we dont do that.
+ if(sels || sels.length){
// if editorgrid..
}
return false;
},
-
+
+ onBeforeDrag : function(data, e)
+ {
+ // if we dont have any data to drag - then cancel.
+ return data !== false;
+ },
onInitDrag : function(e){
var data = this.dragData;
this.ddel.innerHTML = this.grid.getDragDropText();