Now highlighting the hovered drop target and highlighting/focusing the dropped editor.
This commit is contained in:
parent
a35f62b51f
commit
ec377a644a
|
@ -572,12 +572,13 @@ h1 {
|
||||||
-moz-border-radius: 5px;
|
-moz-border-radius: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -0.5em;
|
top: -0.5em;
|
||||||
border-top: 2px dashed #999999;
|
border-top: 2px dashed #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note_drop_target_hover {
|
.note_drop_target_hover {
|
||||||
height: 2em;
|
height: 2em;
|
||||||
border: 2px dashed #000000;
|
border: 2px dashed #000000;
|
||||||
|
background-color: #ffcc66;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note_shadow {
|
.note_shadow {
|
||||||
|
|
|
@ -847,6 +847,7 @@ Editor.prototype.drop = function( event ) {
|
||||||
setElementPosition( this.holder, getElementPosition( hover_drop_target ) );
|
setElementPosition( this.holder, getElementPosition( hover_drop_target ) );
|
||||||
swapDOM( hover_drop_target, this.holder );
|
swapDOM( hover_drop_target, this.holder );
|
||||||
removeElement( "note_drag_source_area" );
|
removeElement( "note_drag_source_area" );
|
||||||
|
this.highlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
var drop_targets = getElementsByTagAndClassName( "div", "note_drop_target" );
|
var drop_targets = getElementsByTagAndClassName( "div", "note_drop_target" );
|
||||||
|
|
Reference in New Issue