mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Avoid undesired selections.
This commit is contained in:
@@ -262,6 +262,7 @@ xmled.XmlEditor = function XmlEditor(element, grammarurl, styleurl) {
|
||||
crumbElement.style.paddingBottom = "0.1em";
|
||||
crumbElement.style.backgroundColor = '#000000';
|
||||
crumbElement.style.whiteSpace = 'normal';
|
||||
crumbElement.className = 'unselectable';
|
||||
canvasElement.style.marginTop = "0.3em";
|
||||
canvasElement.style.display = "inline-block";
|
||||
canvasElement.style.width = "40em";
|
||||
@@ -288,6 +289,8 @@ xmled.XmlEditor = function XmlEditor(element, grammarurl, styleurl) {
|
||||
attributeEditorElement.style.whiteSpace = 'normal';
|
||||
attributeEditorElement.style.fontFamily = 'sans';
|
||||
attributeEditorElement.style.fontSize = 'smaller';
|
||||
attributeEditorElement.className = 'unselectable';
|
||||
viewButtons.className = 'unselectable';
|
||||
canvas = new xmled.XmlCanvas(canvasElement, validationModel, styleurl);
|
||||
var root = canvas.getDocumentRoot();
|
||||
crumbBar = new xmled.CrumbBar(crumbElement, root, validationModel);
|
||||
|
||||
@@ -73,3 +73,14 @@
|
||||
.hoveropaque:hover {
|
||||
background-color: rgba(128,128,128,0.5);
|
||||
}
|
||||
.unselectable {
|
||||
-moz-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
/*
|
||||
* Introduced in IE 10.
|
||||
* See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
|
||||
* */
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user