0vote

how to display only bbcodes with tinymce active

I have edit textarea with bbcodes. It's done this way in old plugin:

$text .= "<textarea class='tbox' name='news_com_comment' rows='15' cols='75' style='width:95%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'></textarea><br>";
$text .= display_help('helpb', 'forum');}

How to get the same result with $frm = e107::getForm(); ?

If I use this:

$frm->textarea('news_sum',$row['news_sum'],10, 100,array('size'=>'block-level'))

there are no buttons of course,

if I use this:

$frm->bbarea('news_sum',$row['news_sum'],10, 100,array('size'=>'block-level'))

there are tinymce buttons. 

I can't set tinymce OFF, it's needed in other parts.

 

e107 version e107 v 2.1.6 27.3.17

Please log in or register to answer this question.

Know someone who can answer? Share a link to this

Recent Activities

...

e107 Q&A is a Question and Answer platform where e107 users can ask questions themselves and answer each others questions. By doing so users can earn badges and points and become e107 experts.

This community platform is a valuable tool for sharing and gaining knowledge on e107. Go ahead and find out yourself!

Connect with us