diff --git a/felamimail/inc/class.uicompose.inc.php b/felamimail/inc/class.uicompose.inc.php index fbd90cbcdf..fe35cb22a2 100644 --- a/felamimail/inc/class.uicompose.inc.php +++ b/felamimail/inc/class.uicompose.inc.php @@ -596,9 +596,9 @@ $this->t->set_var('mimeType', 'html'); $ishtml=1; } else { - $style="border:0px; width:100%; height:400px;"; + $border="1px solid gray; margin:1px"; // initalize the CKEditor Object to enable switching back and force - $editor = html::fckEditorQuick('body', 'ascii', $sessionData['body'],'400px','99%'); + $editor = html::fckEditorQuick('body', 'ascii', $sessionData['body'],'400px','99%',false,$border); $this->t->set_var('tinymce', $editor); //html::fckEditorQuick('body', 'ascii', $sessionData['body'],'400px','99%')); $this->t->set_var('mimeType', 'text'); $ishtml=0; diff --git a/felamimail/js/jscode/composeMessage.js b/felamimail/js/jscode/composeMessage.js index 2f2eafa051..bb75996060 100644 --- a/felamimail/js/jscode/composeMessage.js +++ b/felamimail/js/jscode/composeMessage.js @@ -883,7 +883,6 @@ function setupPlainEditor(plaineditor, height) { //Do some presets on the new editor plaineditor.style.width = "99%"; - plaineditor.style.borderWidth = 0; plaineditor.style.height = height; plaineditor.style.borderWidth = "1px"; plaineditor.style.borderStyle = "solid"; diff --git a/felamimail/templates/default/composeForm.tpl b/felamimail/templates/default/composeForm.tpl index 1c0bfd7077..60f3069574 100644 --- a/felamimail/templates/default/composeForm.tpl +++ b/felamimail/templates/default/composeForm.tpl @@ -184,7 +184,7 @@
- +
diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 21c69e014e..9672874b3a 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -170,7 +170,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 ); @@ -552,13 +553,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 {