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

le="color: #000000"><?php $textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, 'bcontent', $block['content'], 15, 70);


find the above line and replace with
below
le="color: #000000"><?php 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'], 15, 70); }


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?

Who's Online

174 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits