Solved it…
In my functions.php I should have put:
array(
'title' => 'Hidden Element',
'inline' => 'span',
'classes' => 'hiddenElement',
'wrapper' => false,
),
not
array(
'title' => 'Hidden Element',
'block' => 'span',
'classes' => 'hiddenElement',
'wrapper' => false,
),
as here: http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-styles-to-wordpress-visual-editor/
Related Posts:
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- Is it possible to create nested lists in the WYSIWYG editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- Cite-Tag for blockquotes
- data-accordion removed in Visual Editor
- TinyMCE strips line breaks on mceAddControl
- Using main style.css with add_editor_style
- How can I control the HTML output of my post?
- Adding Custom Styles to the MCE dropdown toolbar
- Add a select a class dropdown in tinymce
- Custom settings page TinyMce: no formatting when echoing value of editor
- Stop WordPress Visual Editor converting backticks into code blocks
- How to dynamically generate wordpress editor on frontend?
- Adding custom styles to elements, without creating new elements
- Tiny MCE doesn’t look anything like my blog
- Stop editor from adding “amp;” after every “&”
- TinyMCE not loading in IE8
- Tiny MCE custom styles, and preview in the backend
- How to apply padding to TinyMCE editor?
- WordPress adding extra html coding to my data on saving
- TinyMCE 4.0: specifying buttons to display [duplicate]
- WYSIWYG with HTML source?
- How do I separate my theme’s styles from editor styles?
- Add custom classes to TinyMCE generated markup
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- Creating a wp_editor instance with custom tinyMCE buttons
- How to add custom CSS (theme option) to TinyMCE?
- Add popup window to TinyMCE buttons
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- Load wp_editor via ajax [duplicate]
- Why did multiple line breaks stop working in text editor?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- TinyMCE format dropdown no longer showing style previews
- Wait for Gutenberg or built something in ACF?
- Using a dashicon for a custom button in TinyMCE?
- How to disable TinyMCE 4 keyboard shortcuts
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- WordPress MultiSite Paste from Word Tool Does not work
- Remove quicktag buttons but not Visual / Text editor and tabs
- TinyMCE removes iframe attributes width and height
- WordPress tinymce prints empty P tag and break html format
- Append Font Family in TinyMCE
- Ability to edit image via WYSIWYG
- tinyMCE duplicates previous block element when pressing return (visual editor)
- WP 3.3 my rich text category editor toolbar is gone!
- WordPress visual editor broke due to non standard port?
- Enable Visual Editor In Comments On CPT Edit Page
- TinyMCE is broken
- Is there a way to remove the default css from TinyMCE?
- Add TinyMCE to CPT metaboxes in 3.1?
- Is there a filter for editor-style.css file?
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Add a TinyMCE Core Plugin Using tiny_mce_before_init
- Selectively remove empty line after line change
- Fontawesome icon vanishes in editor while switching text and visual mode
- wordpress qtranslate editor text is not working [closed]
- create a front end post page template withTinyMCE,
- How does WordPress remember which editor is being used?
- How to Add TinyMCE to widget
- Open Insert/edit link popup
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- How to add Listbox / Select dropdown for shortcodes in WP 3.9 beta2 using TinyMCE?
- Using spellchecker plugin in TinyMCE
- wp_editor not modify html tags of initial content
- jQuery UI styles conflicting with TinyMCE dialog
- Stop TinyMCE from deleting empty HTML tags
- How to i style the elements from the TinyMCE
- Custom TinyMCE Editor Formats in Dropdown
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Can I disable `wp-tinymce.php` load as script?
- wp_editor – Media uploader button to tinymce
- WordPress no longer holding post formatting
- Show class from css in format dropdown
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- WP Editor: Keep Bold, Underline, etc. but ignore color
- TinyMCE 4 & wp_editor multiple editor issue
- TinyMCE Advances is removing blanks (” “)
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- enable TinyMCE for comment forms
- TinyMCE invalid nested list markup
- Unable to save Theme Options when TinyMCE is enabled for the text area
- Adding a Media Button to the WordPress Content Editor
- How can I change TinyMCE’s default block format?
- Add WordPress Core CSS into editor-style.css
- Remove MS Word comments from pasted text
- How to force wp excerpt to use br tag?
- How to have html in TinyMce “Text” tab properly indented and highlighted
- TinyMCE adds a after a HR
- How to remove “justifyfull” in TinyMCE
- Localize tinymce in WordPress 3.9?
- Get the More QuickTag button back
- Make videos output as iframes not links
- Preventing tinyMCE from auto formatting selected blocks of content
- How to insert image from link in TinyMCE
- Tinymce broken after update
- get backend to front end
- Why did my get mangled, and how can I keep from happening again?
- Enqueue MCE Editor CSS in admin page