From c888134a0418f3c71074a95225184c103a2da19a Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 15 Aug 2012 14:55:02 +0000 Subject: [PATCH] * email: fix for ->no initial border on plaintext editor textarea<- --- phpgwapi/inc/class.html.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 51389a72c3..9ce781b2e3 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -172,7 +172,8 @@ class html $Protocol = '(http:\/\/|(ftp:\/\/|https:\/\/))'; // only http:// gets removed, other protocolls are shown $Domain = '([\w-]+\.[\w-.]+)'; $Subdir = '([\w\-\.,@?^=%&;:\/~\+#]*[\w\-\@?^=%&\/~\+#])?'; - $Expr = '/' . $NotAnchor . $Protocol . $Domain . $Subdir . '/i'; + $optBracket = ''; + $Expr = '/' . $NotAnchor . $Protocol . $Domain . $Subdir . $optBracket . '/i'; $result = preg_replace( $Expr, "$2$3$4", $result ); @@ -556,13 +557,15 @@ class html * @param string $_height='400px' * @param string $_width='100%' * @param boolean $_purify=true + * @param string $_border='0px' NOT used for CKEditor * @return string the necessary html for the textarea */ - static function fckEditorQuick($_name, $_mode, $_content='', $_height='400px', $_width='100%',$_purify=true) + static function fckEditorQuick($_name, $_mode, $_content='', $_height='400px', $_width='100%',$_purify=true, $_border='0px') { if (!self::htmlarea_availible() || $_mode == 'ascii') { - return ""; + //TODO: use self::textarea + return ""; } else {