margin: 0px;
display: block;
+ -moz-user-select: -moz-none;
+ -webkit-user-select: none;
+
padding: 2px;
cursor: pointer;
border-bottom: 1px solid black;
}
.view-overlay {
- z-index: 1000;
- background: #FFF;
- opacity: 0.8;
+ display: none;
+ z-index: 0;
+ background: #FFF;
text-align: center;
vertical-align: middle;
-webkit-user-select: 'none';
-khtml-user-select: 'none';
-moz-user-select: 'none'; */
+
overflow: 'hidden';
}
this.model
.addObserver(this, 'data', this.modelDataChanged.bind(this))
.addObserver(this, 'state', this.modelStateChanged.bind(this));
-
- $('.htmlview', this.element).html(this.model.get('data'));
+
this.$menuTemplate = $(render_template('html-view-frag-menu-template', this));
-
this.modelStateChanged('state', this.model.get('state'));
+ this.modelDataChanged('data', this.model.get('data'));
+
this.model.load();
this.currentOpen = null;
/* upgrade editable elements */
$("*[x-editable]").each(function() {
$(this).append( self.$menuTemplate.clone() );
- });
-
- var n = 5001;
+ });
var doc_base = $('.htmlview .utwor', this.element);
left: this.element.position().left
}).appendTo(this.element);
this.views.css("-webkit-user-select", "none"); // Safari selects A/B text on a move
+
this.splitbar.addClass(this.activeClass);
this.leftViewOffset = this.leftView[0].offsetWidth - event.pageX;
$(document)
.unbind('mousemove.splitview')
.unbind('mouseup.splitview');
+
+ //from beginResize:
+ // this.views.css("-webkit-user-select", "none"); // Safari selects A/B text on a move
+ // Restore it!
+ this.views.css("-webkit-user-select", "auto");
},
resized: function(event) {