openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6d7b4d333a7543f3178ba90f8e88b861759f0fa5
parent f87dce101c1ca5dd3b3134654a0d2195f0c471db
Author: dankert <devnull@localhost>
Date:   Mon, 22 Mar 2010 23:36:36 +0100

Bug #3: Beim Editieren größerer Texte die Breite der HTML-Textarea.auf 100% setzen.

Diffstat:
themes/default/css/base.css | 6++++++
themes/default/include/html/editor.inc.php | 2+-
themes/default/pages/html/pageelement/edit.tpl.php | 4++--
themes/default/pages/html/template/src.tpl.php | 7++++---
themes/default/templates/template/src.tpl.src.php | 2+-
5 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/themes/default/css/base.css b/themes/default/css/base.css @@ -519,4 +519,10 @@ table.main td.help span text-align:center; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; +} + +textarea.editor +{ + width:100%; + height:400px; } \ No newline at end of file diff --git a/themes/default/include/html/editor.inc.php b/themes/default/include/html/editor.inc.php @@ -222,7 +222,7 @@ function table() </table> <fieldset><legend><?php echo langHtml('CONTENT') ?></legend></fieldset> - <textarea name="<?php echo $attr_name ?>" class="editor" style="width:100%;height:300px;"><?php echo $$attr_name ?></textarea> + <textarea name="<?php echo $attr_name ?>" class="editor"><?php echo $$attr_name ?></textarea> <?php } diff --git a/themes/default/pages/html/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -1200,7 +1200,7 @@ switch( $a8_type ) array(/*'Styles',*/'Format','Font','FontSize'), array('TextColor','BGColor'), array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','upload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); + $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); $editor->editor($a8_name,$$a8_name); } @@ -1424,7 +1424,7 @@ switch( $a8_type ) array(/*'Styles',*/'Format','Font','FontSize'), array('TextColor','BGColor'), array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','upload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); + $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); $editor->editor($a8_name,$$a8_name); } diff --git a/themes/default/pages/html/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php @@ -62,6 +62,7 @@ echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='TEMPLATE_SOURCE';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php $coloumn_widths=array(); + $icon=$actionName; $row_classes = explode(',',$a3_rowclasses); $row_class_idx = 999; $column_classes = explode(',',$a3_columnclasses); @@ -80,7 +81,7 @@ if (!@$conf['interface']['application_mode'] ) { echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; + echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } @@ -88,7 +89,7 @@ ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?php } else { ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -184,7 +185,7 @@ <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_name='src';$a6_rows='25';$a6_cols='80';$a6_class='inputarea';$a6_default=''; ?><?php if ($this->isEditMode()) { +><?php $a6_name='src';$a6_rows='25';$a6_cols='80';$a6_class='editor';$a6_default=''; ?><?php if ($this->isEditMode()) { ?><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" rows="<?php echo $a6_rows ?>" cols="<?php echo $a6_cols ?>"><?php echo htmlentities(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea><?php } else { ?><span class="<?php echo $a6_class ?>"><?php echo isset($$a6_name)?$$a6_name:$a6_default ?></span><?php } ?><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?></td></tr><?php diff --git a/themes/default/templates/template/src.tpl.src.php b/themes/default/templates/template/src.tpl.src.php @@ -4,7 +4,7 @@ page window name:TEMPLATE_SOURCE row cell - inputarea rows:25 cols:80 name:src + inputarea rows:25 cols:80 name:src class:editor row cell class:act