1
Mazar
Use tinymce in xoops 2.4 blocks
  • 2009/11/24 10:56

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


open modules/system/admin/blocksadmin/blockform.php

$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);


find the above line and replace with
below
if ( is_readable(XOOPS_ROOT_PATH "/class/xoopseditor/tinymce/formtinymce.php")) {
    include_once(
XOOPS_ROOT_PATH "/class/xoopseditor/tinymce/formtinymce.php");
     include_once(
XOOPS_ROOT_PATH "/class/xoopseditor/tinymce/language/english.php");
    
$textarea = new XoopsFormTinymce(array('caption'=>_AM_CONTENT'name'=>'bcontent''value'=>$block['content'], 'cols'=>'15','rows'=>'20''xEditor'=>'1'));
    }else{
    
$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);
    }


you will have a tinymce as editor in XOOPS blocks

2
option
Re: Use tinymce in xoops 2.4 blocks
  • 2010/2/9 0:01

  • option

  • Just popping in

  • Posts: 50

  • Since: 2006/5/24


not working
xoops 2.4.4 (option "html" and other button)
-----------------------
upss Opera Bug (9.50) sorry....

3
ghia
Re: Use tinymce in xoops 2.4 blocks
  • 2010/2/9 0:49

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It works here on 2.4.3 but the option doesn't matter. For a custom block, you should see always the tinymce editor window.
What do you see?

Login

Who's Online

177 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits