WebsiteBaker Support (2.11.x) > Modules
too few lines when switching CKEditor to none
betra:
I have Website Baker Version 2.11.0.
I am content with a simple text-area, just want more than 2 lines.
Regard
Bernhard
jacobi22:
File: modules/wysiwyg/modify.php
the originalcode in Lines 76 - 79
--- Code: ---<?php
echo $admin->getFTAN()."\n";
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','350', false);
?>
--- End code ---
change it to
--- Code: ---<?php
echo $admin->getFTAN()."\n";
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','100px', false);
?>
--- End code ---
important are the 100px here, maybe, you need only 80px
solution ist testet with WB 2.11.0
DarkViper:
open the file /modules/wysiwyg/modify.php and replace the 'height' argument by 'rows="20"' (or even the numer of lines you wish).
function show_wysiwyg_editor($name,$id,$content,$width,$height) {
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; rows="20";">'. $content.'</textarea>';
}
'height' is needed to reserve space for the CKEditor. A simple <textarea> needs the number of visible lines.
This solution gives you the freedom to switch in backend between Textarea and CKEditor (with original settings) at any time.
jacobi22:
da sag ich jetzt mal nichts dazu....
betra:
Thank you both.
I changed
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height:.$height.';">'.$content.'</textarea>';
into
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: 500px;">'.$content.'</textarea>';
The change from
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','350', false);
into
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','500px', false);
works the same way.
Thank you very much
Bernhard
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version