зеркало из https://github.com/mozilla/gecko-dev.git
39070 - can't dnd images or <areas>. r=ben sr=hewitt
This commit is contained in:
Родитель
2caae40045
Коммит
cd8e813edf
|
@ -404,6 +404,10 @@ hr {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
img, area {
|
||||
-moz-user-select: none !important;
|
||||
}
|
||||
|
||||
img[usemap], object[usemap] {
|
||||
color: blue;
|
||||
-moz-user-focus: normal;
|
||||
|
|
|
@ -404,6 +404,10 @@ hr {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
img, area {
|
||||
-moz-user-select: none !important;
|
||||
}
|
||||
|
||||
img[usemap], object[usemap] {
|
||||
color: blue;
|
||||
-moz-user-focus: normal;
|
||||
|
|
|
@ -97,13 +97,20 @@ var contentAreaDNDObserver = {
|
|||
switch (local_name)
|
||||
{
|
||||
case 'AREA':
|
||||
var areasrc = draggedNode.getAttribute("href");
|
||||
|
||||
// use alt text as the title of the area, if it's there
|
||||
titlestring = draggedNode.getAttribute("alt");
|
||||
urlstring = areasrc;
|
||||
htmlstring = "<img src=\"" + urlstring + "\">";
|
||||
break;
|
||||
case 'IMG':
|
||||
var imgsrc = draggedNode.getAttribute("src");
|
||||
var baseurl = window._content.location.href;
|
||||
// var baseurl = window._content.location.href;
|
||||
// need to do some stuff with the window._content.location
|
||||
// (path?) to get base URL for image.
|
||||
|
||||
// use alt text as the title of the image, if it's there
|
||||
// use alt text as the title of the image, if it's there
|
||||
titlestring = draggedNode.getAttribute("alt");
|
||||
urlstring = imgsrc;
|
||||
htmlstring = "<img src=\"" + urlstring + "\">";
|
||||
|
|
Загрузка…
Ссылка в новой задаче