Follow up for feature #9775: htmlArea RTE: additional features for link insertion...
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 22 Nov 2008 21:40:49 +0000 (21:40 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 22 Nov 2008 21:40:49 +0000 (21:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4480 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php

index 367bd34..8e5688d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-22  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Follow up for feature #9775: htmlArea RTE: additional features for link insertion dialogue
+
 2008-11-22  Steffen Kamper  <info@sk-typo3.de>
 
        * felogin: completed ChangeLog, raised ext-version to 1.1.0
index 4f6bfc3..f3e06db 100644 (file)
@@ -1,3 +1,7 @@
+2008-11-22  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Follow up for feature #9775: htmlArea RTE: additional features for link insertion dialogue
+
 2008-11-13  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow up for issue #9771: htmlArea RTE spellchecker not working in TYPO3 4.3-dev
index bf3374a..51493f2 100644 (file)
@@ -553,7 +553,7 @@ class tx_rtehtmlarea_browse_links extends browse_links {
                                return false;
                        }
                ';
-                       // General "jumpToUrl" function:
+                       // General "jumpToUrl" and launchView functions:
                $JScode.='
                        function jumpToUrl(URL,anchor) {
                                var add_editorNo = URL.indexOf("editorNo=")==-1 ? "&editorNo='.$this->editorNo.'" : "";
@@ -574,6 +574,13 @@ class tx_rtehtmlarea_browse_links extends browse_links {
                                window.location.href = theLocation;
                                return false;
                        }
+                       function launchView(url) {
+                               var thePreviewWindow="";
+                               thePreviewWindow = window.open("' . $GLOBALS['BACK_PATH'] . 'show_item.php?table="+url,"ShowItem","height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
+                               if (thePreviewWindow && thePreviewWindow.focus) {
+                                       thePreviewWindow.focus();
+                               }
+                       }
                ';
                return $JScode;
        }