Suche auf www.schulpastoral.de
Bibliothek auf www.rpi-virtuell.de
rpi-virtuell - Suche

Login
Mitgliedsname:

Passwort:


Password vergessen?
Neu anmelden!
  Home >> RSS Center >> Use Tinyeditor for creating your blocks in 2.3*

RSS Center

  Haupt  |  Einfache Schlagzeilen  

link XOOPS.org XOOPS.org (05.02.2026 02:05)

feed Use Tinyeditor for creating your blocks in 2.3* (04.04.2008 21:41)
To use Tinyeditor for creating custom blocks in 2.3 :

Go to root/module/system/admin/blocksadmin/

Make an backup of the blockform.php
and open it.

Then

Search for:
 $textarea = new
XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70);


And replace it with:
 if ( is_readable(XOOPS_ROOT_PATH .
"/class/xoopseditor/tinyeditor/formtinyeditortextarea.php")) {
    include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php");
    $textarea = new XoopsFormTinyeditorTextArea(array('caption'=>_AM_CONTENT, 'name'=>'bcontent',
'value'=>$block['content'], 'width'=>'100%', 'height'=>'400px', 
'xEditor'=>'1'));
    }else{
    $textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70);
    }


And if you go to blocks in your administration then youl see tinyeditor in stead of the normal editor.
(This hack only works if you have installed tinyeditor!)


execution time : 0.039 sec