__('Abbreviation', 'tinymce-abbr'), 'abbr_delete_button' => __('Delete abbreviation', 'tinymce-abbr'), 'abbr_title_label' => __('Title', 'tinymce-abbr'), 'abbr_title_help' => __('The meaning of your abbreviation', 'tinymce-abbr'), 'abbr_lang_label' => __('Language (optional)', 'tinymce-abbr'), 'abbr_lang_help' => __('Example: fr, en, de, etc. Use it only if the abbreviation’s language is different from page main language', 'tinymce-abbr'), 'abbr_alert' => __('Please select some text first', 'tinymce-abbr') ) ); echo ''; } /** * Adds a button to the TinyMCE / Visual Editor which the user can click * to insert the abbr node tag. * * @param array $buttons Array of registered TinyMCE Buttons * @return array Modified array of registered TinyMCE Buttons */ function add_tinymce_abbr_toolbar_button( $buttons ) { array_push( $buttons, 'tinymce_abbr_class' ); return $buttons; } } $TinyMCE_ABBR = new TinyMCE_ABBR;