SocialEngine 4: Enable Function With WYSIWIG

Andrew - SocialEngine

Many uses have noticed that many functions with which opens with many of the text editor have now been limited to only a small about of icons and shortcuts tools you can use.

If you follow this guide below it will show you how to enable the all the functions of the Text box like it used to be.

Go to application/libraries/Engine/View/Helper  and edit the TinyMce.php all installed plugins can be placed on bar.

<span class="str">'plugins'</span> <span class="pun">=&gt;</span><span class="pln"> array</span><span class="pun">(</span>
      <span class="str">'advlist'</span><span class="pun">,</span> <span class="str">'anchor'</span><span class="pun">,</span> <span class="str">'autolink'</span><span class="pun">,</span> <span class="str">'autoresize'</span><span class="pun">,</span> <span class="str">'autosave'</span><span class="pun">,</span> <span class="str">'bbcode'</span><span class="pun">,</span>
      <span class="str">'charmap'</span><span class="pun">,</span> <span class="str">'code'</span><span class="pun">,</span> <span class="str">'compat3x'</span><span class="pun">,</span> <span class="str">'contextmenu'</span><span class="pun">,</span> <span class="str">'directionality'</span><span class="pun">,</span>
      <span class="str">'emoticons'</span><span class="pun">,</span> <span class="str">'example'</span><span class="pun">,</span> <span class="str">'example_dependency'</span><span class="pun">,</span> <span class="str">'fullpage'</span><span class="pun">,</span> <span class="str">'fullscreen'</span><span class="pun">,</span>
      <span class="str">'hr'</span><span class="pun">,</span> <span class="str">'image'</span><span class="pun">,</span> <span class="str">'insertdatetime'</span><span class="pun">,</span> <span class="str">'layer'</span><span class="pun">,</span> <span class="str">'legacyoutput'</span><span class="pun">,</span> <span class="str">'link'</span><span class="pun">,</span> <span class="str">'lists'</span><span class="pun">,</span>
      <span class="str">'importcss'</span><span class="pun">,</span> <span class="str">'media'</span><span class="pun">,</span> <span class="str">'nonbreaking'</span><span class="pun">,</span> <span class="str">'noneditable'</span><span class="pun">,</span> <span class="str">'pagebreak'</span><span class="pun">,</span> <span class="str">'paste'</span><span class="pun">,</span>
      <span class="str">'preview'</span><span class="pun">,</span> <span class="str">'print'</span><span class="pun">,</span> <span class="str">'save'</span><span class="pun">,</span> <span class="str">'searchreplace'</span><span class="pun">,</span> <span class="str">'spellchecker'</span><span class="pun">,</span> <span class="str">'tabfocus'</span><span class="pun">,</span>
      <span class="str">'table'</span><span class="pun">,</span> <span class="str">'template'</span><span class="pun">,</span> <span class="str">'textcolor'</span><span class="pun">,</span> <span class="str">'visualblocks'</span><span class="pun">,</span> <span class="str">'visualchars'</span><span class="pun">,</span>
      <span class="str">'wordcount'</span><span class="pun">,</span> <span class="str">'jbimages'</span><span class="pun">,</span> <span class="str">'responsivefilemanager'</span>

Like this I have done here.

<span class="kwd">protected</span><span class="pln"> $_config </span><span class="pun">=</span><span class="pln"> array</span><span class="pun">(</span>
    <span class="str">'mode'</span> <span class="pun">=&gt;</span> <span class="str">'textareas'</span><span class="pun">,</span>
    <span class="str">'plugins'</span> <span class="pun">=&gt;</span><span class="pln"> array</span><span class="pun">(</span>
      <span class="str">'table'</span><span class="pun">,</span> <span class="str">'fullscreen'</span><span class="pun">,</span> <span class="str">'media'</span><span class="pun">,</span> <span class="str">'preview'</span><span class="pun">,</span> <span class="str">'paste'</span><span class="pun">,</span> <span class="str">'print'</span><span class="pun">,</span> <span class="str">'code'</span><span class="pun">,</span> <span class="str">'image'</span><span class="pun">,</span> <span class="str">'emoticons'</span><span class="pun">,</span>
      <span class="str">'textcolor'</span><span class="pun">,</span> <span class="str">'jbimages'</span><span class="pun">,</span> <span class="str">'responsivefilemanager'</span>
    <span class="pun">),</span>
    <span class="str">'theme'</span> <span class="pun">=&gt;</span> <span class="str">'modern'</span><span class="pun">,</span>
    <span class="str">'menubar'</span> <span class="pun">=&gt;</span> <span class="kwd">false</span><span class="pun">,</span>
    <span class="str">'statusbar'</span> <span class="pun">=&gt;</span> <span class="kwd">false</span><span class="pun">,</span>
    <span class="str">'toolbar1'</span> <span class="pun">=&gt;</span><span class="pln"> array</span><span class="pun">(</span>
      <span class="str">'print'</span><span class="pun">,</span> <span class="str">'undo'</span><span class="pun">,</span> <span class="str">'redo'</span><span class="pun">,</span> <span class="str">'removeformat'</span><span class="pun">,</span> <span class="str">'pastetext'</span><span class="pun">,</span> <span class="str">'|'</span><span class="pun">,</span> <span class="str">'code'</span><span class="pun">,</span> <span class="str">'media'</span><span class="pun">,</span>
      <span class="str">'image'</span><span class="pun">,</span> <span class="str">'link'</span><span class="pun">,</span> <span class="str">'fullscreen'</span><span class="pun">,</span> <span class="str">'preview'</span><span class="pun">,</span> <span class="str">'emoticons'</span><span class="pun">,</span> <span class="str">'|'</span><span class="pun">,</span> <span class="str">'jbimages'</span><span class="pun">,</span> <span class="str">'responsivefilemanager'</span>

for toolbar 2 you have to scroll down to

 <span class="kwd">public</span> <span class="kwd">function</span><span class="pln"> updateSettings</span><span class="pun">()</span>
  <span class="pun">{</span>
    <span class="kwd">if</span><span class="pun">(</span><span class="pln"> $this</span><span class="pun">-&gt;</span><span class="pln">_html </span><span class="pun">)</span> <span class="pun">{</span> <span class="com">// HTML</span><span class="pln">
      $this</span><span class="pun">-&gt;</span><span class="pln">_config</span><span class="pun">[</span><span class="str">'toolbar2'</span><span class="pun">]</span> <span class="pun">=</span><span class="pln"> array</span><span class="pun">(</span>
        <span class="str">'fontselect'</span><span class="pun">,</span> <span class="str">'fontsizeselect'</span><span class="pun">,</span> <span class="str">'bold'</span><span class="pun">,</span> <span class="str">'italic'</span><span class="pun">,</span> <span class="str">'underline'</span><span class="pun">,</span>
        <span class="str">'strikethrough'</span><span class="pun">,</span> <span class="str">'forecolor'</span><span class="pun">,</span> <span class="str">'backcolor'</span><span class="pun">,</span> <span class="str">'|'</span><span class="pun">,</span> <span class="str">'alignleft'</span><span class="pun">,</span>
        <span class="str">'aligncenter'</span><span class="pun">,</span> <span class="str">'alignright'</span><span class="pun">,</span> <span class="str">'alignjustify'</span><span class="pun">,</span> <span class="str">'|'</span><span class="pun">,</span> <span class="str">'bullist'</span><span class="pun">,</span>
        <span class="str">'numlist'</span><span class="pun">,</span> <span class="str">'|'</span><span class="pun">,</span> <span class="str">'outdent'</span><span class="pun">,</span> <span class="str">'indent'</span><span class="pun">,</span> <span class="str">'blockquote'</span><span class="pun">,</span>

This would have now Changed your Text Box’s to include all toolbar functions

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *