Merge pull request #6877 from saurabhbatra96/comment-fixes-utils
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
index de6c92fb271f2effe03cd12190ee04b475ca10a4..505aa385ffe138661609d34ebfc10736c2e6093a 100644 (file)
@@ -1,6 +1,6 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
     </tr>
     <tr class="crm-preferences-display-form-block-editor_id">
       <td class="label">{$form.editor_id.label}</td>
-      <td>{$form.editor_id.html}</td>
+      <td>
+        {$form.editor_id.html}
+        &nbsp;
+        <span class="crm-button crm-icon-button" style="display:inline-block;vertical-align:middle;float:none!important;">
+          <span class="crm-button-icon ui-icon-gear"> </span>
+          {$form.ckeditor_config.html}
+        </span>
+      </td>
     </tr>
     <tr class="crm-preferences-display-form-block-description">
       <td>&nbsp;</td>
           placeholder: 'ui-state-highlight',
           update: getSorting
         });
+
+        function showCKEditorConfig() {
+          $('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
+        }
+        $('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
       });
     </script>
   {/literal}