سؤال

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