문제

I am using phpfox cms and it have default tiny_mce editor but i want to user WYSIWYG editor, please tell me how can i apply WYSIWYG editor in my code?

I use this code in my controller

$this->template()->setEditor();

I use this code in HTML

{editor id='message'}

Thanks

도움이 되었습니까?

해결책

Go to

http://yoursite.com/index.php?do=/admincp/setting/edit/group-id_formatting/

and Change WYSIWYG Editor from default to tiny_mce

다른 팁

By default, phpfox use normal tiny mce editor. you can use this code to use WYSIWYG in phpfox

{literal}
  <script type='text/javascript'>
     $Behavior.commentPreLoadTinymce = function()
     {l}
         customTinyMCE_init('message');
     {r}
  </script>
{/literal}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top