* Added feature #13608: htmlArea RTE: Make height of the context menu configurable
* Updated NEWS.txt as follow-up to #13580: htmlArea RTE: Extjize the RTE
* Fixed bug #13618: htmlArea RTE: RTE iframe is sometimes collapsed
+ * Fixed bug #13619: htmlArea RTE: url not detected on enter
2010-02-22 Dmitry Dulepov <dmitry.dulepov@gmail.com>
* Added feature #13608: htmlArea RTE: Make height of the context menu configurable
* Fixed bug #13618: htmlArea RTE: RTE iframe is sometimes collapsed
+ * Fixed bug #13619: htmlArea RTE: url not detected on enter
2010-02-21 Stanislas Rolland <typo3@sjbr.ca>
var a = textNode.parentNode.insertBefore(tag, rightText);
HTMLArea.removeFromParent(textNode);
a.appendChild(textNode);
- rightText.data += " ";
- s.collapse(rightText, rightText.data.length);
- event.stopEvent();
+ s.collapse(rightText, 0);
+ rightText.parentNode.normalize();
editor._unLink = function() {
var t = a.firstChild;
switch(ev.which) {
// Space or Enter or >, see if the text just typed looks like a URL, or email address and link it accordingly
- case 13: // Enter
- if(ev.shiftKey || editor.config.disableEnterParagraphs) break;
- //Space
+ case 13:
case 32:
if(s && s.isCollapsed && s.anchorNode.nodeType == 3 && s.anchorNode.data.length > 3 && s.anchorNode.data.indexOf('.') >= 0) {
var midStart = s.anchorNode.data.substring(0,s.anchorOffset).search(/[a-zA-Z0-9]+\S{3,}$/);
}
if (!event.altKey && !event.ctrlKey) {
// Detect URL in non-IE browsers
- if (!Ext.isIE) {
+ if (!Ext.isIE && (event.getKey() != Ext.EventObject.ENTER || event.shiftKey)) {
this.getEditor()._detectURL(event);
}
// Handle option+SPACE for Mac users
* Handler for ENTER key in non-IE browsers
*/
onEnter: function (key, event) {
+ this.getEditor()._detectURL(event);
if (!event.shiftKey) {
if (this.getEditor()._checkInsertP()) {
event.stopEvent();