You can change the text in your email campaigns with a rich text editor. The reason you may miss some buttons in the editor is that emails are not often WYSIWYG. To prevent confusions some options are missing but you can easily add more if you need.

editor buttons

To get the above result simple add this snippet to your themes function.php or in a dedicate plugin:

function mailster_add_custom_editor_buttons($buttons){

  $buttons = 'formatselect,fontselect,fontsizeselect,|,cut,copy,paste,pastetext';
  
  return $buttons;

}

add_filter( 'mailster_editor_toolbar2', 'mailster_add_custom_editor_buttons' );

This will add a

  • Dropdown for the format (formatselect)
  • Dropdown for the font family (fontselect)
  • Dropdown for font sizes (fontsizeselect)
  • Buttons to cut, copy, paste and paste as text (pastetext)

To use a separator you can use a pipe (|)

Here are the fields you can use:

bold, italic, bullist, numlist, blockquote, alignleft, aligncenter, alignright, link, unlink, strikethrough, underline, alignjustify, forecolor, backcolor, pastetext, removeformat, charmap, outdent, indent, undo, redo, hr, wp_code, remove, styleselect, fontselect, fontsizeselect

Please note that a similar look of your email cannot be guaranteed if you use custom styles.

The editor provides three toolbar areas. If you like to change the first use mailster_editor_toolbar1, mailster_editor_toolbar2 for the second and mailster_editor_toolbar3 for the third one.

Tagged: