Index: typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js
===================================================================
--- typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (révision 9414)
+++ typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (copie de travail)
@@ -129,7 +129,12 @@
range.selectNodeContents(node);
}
} else {
- range.selectNode(node);
+ if (node.nodeType == HTMLArea.DOM.ELEMENT_NODE && (Ext.isWebKit || Ext.isOpera)) {
+ range.setStart(node, 0);
+ range.setEnd(node, 0);
+ } else {
+ range.selectNode(node);
+ }
}
if (typeof(endPoint) != "undefined") {
range.collapse(endPoint);
Index: typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
===================================================================
--- typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (révision 9414)
+++ typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
@@ -1299,7 +1299,11 @@
/*
* Handler for mouse events
*/
- onMouse: function () {
+ onMouse: function (event, target) {
+ // In WebKit, select the image when it is clicked
+ if (Ext.isWebKit && /^(img)$/i.test(target.nodeName)) {
+ this.getEditor().selectNode(target);
+ }
this.getToolbar().updateLater.delay(100);
return true;
},
Index: typo3/sysext/rtehtmlarea/htmlarea/skins/default/htmlarea-edited-content.css
===================================================================
--- typo3/sysext/rtehtmlarea/htmlarea/skins/default/htmlarea-edited-content.css (révision 9414)
+++ typo3/sysext/rtehtmlarea/htmlarea/skins/default/htmlarea-edited-content.css (copie de travail)
@@ -7,7 +7,15 @@
background-color:#ffffff;
border-width:0;
}
-
+/* Set cursor for WebKit */
+.htmlarea-content-body img,
+.htmlarea-content-body table {
+ cursor: default;
+}
+.htmlarea-content-body table td,
+.htmlarea-content-body table th {
+ cursor: text;
+}
/* Selectors for the Table Operations plugin */
/* Make borders visible */
/* Make sure we can click in empty cells without too much difficulty */
Index: typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css
===================================================================
--- typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css (révision 9414)
+++ typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css (copie de travail)
@@ -7,7 +7,15 @@
background-color:#ffffff;
border-width:0;
}
-
+/* Set cursor for WebKit */
+.htmlarea-content-body img,
+.htmlarea-content-body table {
+ cursor: default;
+}
+.htmlarea-content-body table td,
+.htmlarea-content-body table th {
+ cursor: text;
+}
/* Selectors for the Table Operations plugin */
/* Make borders visible */
/* Make sure we can click in empty cells without too much difficulty */