Swap out button/submit inputs for button elements
[civicrm-core.git] / CRM / Admin / Form / Preferences / Display.php
index 0716cdebd233bd0286546e939b66d674702047af..41073eed625e50e5358bab6f69d111a14b482303 100644 (file)
@@ -50,17 +50,7 @@ class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences {
     $invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
     $this->assign('invoicing', CRM_Invoicing_Utils::isInvoicingEnabled());
 
-    $this->addElement(
-      'xbutton',
-      'ckeditor_config',
-      CRM_Core_Page::crmIcon('fa-wrench') . ' ' . ts('Configure CKEditor'),
-      [
-        'type' => 'submit',
-        'class' => 'crm-button',
-        'style' => 'display:inline-block;vertical-align:middle;float:none!important;',
-        'value' => 1,
-      ]
-    );
+    $this->addElement('xbutton', 'ckeditor_config', ts('Configure CKEditor'), ['type' => 'submit']);
 
     $editOptions = CRM_Core_OptionGroup::values('contact_edit_options', FALSE, FALSE, FALSE, 'AND v.filter = 0');
     $this->assign('editOptions', $editOptions);