Here’s what I came up with. So far it doesn’t seem to have broken anything:
add_filter('tiny_mce_before_init', 'modify_formats');
function modify_formats($settings){
$formats = array(
'bold' => array('inline' => 'b'),
'italic' => array('inline' => 'i')
);
$settings['formats'] = json_encode( $formats );
return $settings;
}
One could easily have used plus a class here, but given the changes in the spec under html5, and seem acceptable for most situations. (I don’t think that the case to transform these from presentational to structural tags is terribly persuasive, but probably not worth arguing about at this point). Anyone who wants and should probably add the necessary buttons and apply them in the appropriate places.
Related Posts:
- WordPress MultiSite Paste from Word Tool Does not work
- onClick inside post_content does not appear in post tinymce editor
- tinyMCE duplicates previous block element when pressing return (visual editor)
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- How does WordPress remember which editor is being used?
- Change syntax styling of TinyMCE HTML Text Editor
- prevent caching during tinymce custom button development
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- Switch between Visual and HTML tab freely
- Removing buttons from the editor
- Load wp_editor via ajax [duplicate]
- How to use tinyMCE for user “biographical info”?
- How i can i add a split button or list box to the WordPress TinyMCE instance
- TinyMCE in customizer
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- Cite-Tag for blockquotes
- Secure Validation of wp_editor in Theme Options
- Detecting when TinyMCE is “ready”
- Second toolbar in tinymce has “display:none” set?
- Add Shortcode inline inside Gutenberg block
- Integrating inline tinymce editor in a component for a gutenberg block
- Using post ID in custom tinyMCE button
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- TinyMCE Autoresize
- TinyMCE editor – new lines not rendered on front end
- How to get WP editors tinyMCE instances
- How to wrap the content of the main tinyMCE editor with extra tags
- Visual Editor freezing on text highlight since 4.3
- Remove ‘Visual’ tab from TinyMCE editor
- Remove empty lines ( ) when author updates their post
- What is this: data-wplink-url-error=”true” and why is it added to my links?
- Customising the WordPress TinyMce editor and it’s buttons
- How do i disable/disallow and tags in TinyMCE?
- wordpress 3.5 tinymce height
- TinyMCE is broken
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- Change TinyMCE Block Format Labels
- Adding Custom Styles to the MCE dropdown toolbar
- TinyMCE Plugin Parameter
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- How to stop editor removing space ( ) in the beginning of the paragraph
- Limiting allowed html elements/strip harmful scripts from editor
- Add Wrapper with Class to WYSIWYG Editor
- Make Textarea a TinyMCE (editor box)
- How to remove the statusbar from the default wordpress editor?
- wp.editor.initialize does not show the same default toolbar
- Stop WordPress Visual Editor converting backticks into code blocks
- How to add button in TinyMCE TEENY mode?
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- Insert dynamic listbox options in Tinymce popup editor
- Can’t remove generated by editor from database
- Custom TinyMCE style formats disabled
- Editor stripping out data attribute when saving
- create a front end post page template withTinyMCE,
- TinyMCE function: Remove (earlier) added style from the editor
- TinyMCE custom plugin, how to make a word automatically selected based on current cursor position?
- Avoid glitchy characters – my own version of the problem
- Post content not showing in the edit post textarea
- How to add custom font to TinyMCE FontSelect in WP Admin or filter the fonts available
- Disable TinyMCE Table formatting width/height
- Use schema.org HTML in TinyMCE Editor
- wp_editor not modify html tags of initial content
- Customer Support: TinyMCE stopped working (on some computers)
- TinyMCE buttons that launch Ajax-generated forms
- How can I make the page editor trust me?
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- Adding CSS to admin TinyMCE editor for custom button
- How to disable TinyMce’s Paste plugin from turning image URLs into embedded ?
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- Visual composer causing conflict with TinyMCE [closed]
- Blank spaces show as a question mark
- Can i set css class for table via TinyMCE [closed]
- Where’s the explanation of the TinyMCE’s vars in the WP core?
- How to edit blockquote image
- Customizing tinyMCE 4 Styles and Format dropdowns
- WordPress (TinyMCE) not removing script tags
- Why Editor reformats my code
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- How can I remove using built in wordpress filters
- TinyMCE Visual editor removes href containing Javascript with ‘allow_script_urls’ set to true
- TinyMCE is inactive after installation
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Understanding automatic text formatting in the WordPress editor
- Preserve indentation, HTML5 shorthand in editor
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- TinyMce Chrome newline issue
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Custom shortcode editor [BackboneJS & TinyMCE)
- Localize tinymce in WordPress 3.9?
- What is zinging my HTML commands? I don’t think I can blame TinyMCE this time…
- Get the More QuickTag button back
- Is there an alternative way to upload html without using TinyMCE?
- Add new MCE button for toggle specific cell background color