As pointed out by @karun, the text first needed to be made into a hyperlink, after which the formats became active.
Changing the array values to
array(
'title' => 'Grey Button',
'block' => 'div',
'classes' => 'cta gry'
),
made the style permanently available.
Related Posts:
- Add Shortcode inline inside Gutenberg block
- Add table button in editor without Plugin
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Is it possible to disable the image alignment options in the post editor?
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- enable TinyMCE for comment forms
- Best Browser for Editing Posts
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Adding a Media Button to the WordPress Content Editor
- Forcing reload of editor-style.css
- Add popup window to TinyMCE buttons
- TinyMCE editor is breaking my beautiful HTML
- Why did multiple line breaks stop working in text editor?
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- wp_editor disable after reaching character count limit
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- Is it possible to create nested lists in the WYSIWYG editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- TinyMCE Anchor Button not showing
- How to keep non-breaking spaces in the visual editor?
- Is there a way to prevent the Editor from modifying my HTML
- Disable text tab on WordPress text-editor
- How to disable TinyMCE 4 keyboard shortcuts
- How to customize the symbols that appear in the Visual Editor insert custom character
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- How can I insert HTML attributes with an existing TinyMCE button?
- Change padding to text indent in “Increase indent” TinyMCE
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- TinyMCE editor – new lines not rendered on front end
- WordPress tinymce prints empty P tag and break html format
- Visual Editor freezing on text highlight since 4.3
- 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?
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- Customising the WordPress TinyMce editor and it’s buttons
- Enable Visual Editor In Comments On CPT Edit Page
- Text cut off after the character 𪇆 in TinyMCE
- 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
- TinyMCE Plugin Parameter
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- How to disable formatting
- Make Textarea a TinyMCE (editor box)
- How to get line breaks to translate to paragraphs?
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Visual editor not showing all table rows
- Open Insert/edit link popup
- How to dynamically generate wordpress editor on frontend?
- Customer Support: TinyMCE stopped working (on some computers)
- customize tiny MCE blockqute
- Keyup events in tinymce editor not working
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Adding CSS to admin TinyMCE editor for custom button
- How to force insertion in editor
- How can a TinyMCE modal return formatted/visual text?
- Stop editor from adding “amp;” after every “&”
- Visual Editor is blank – 404 for plugin js
- Visual composer causing conflict with TinyMCE [closed]
- Allowing style tag in TinyMCE editor
- TinyMCE: Move buttons from 2nd row to top row
- TinyMCE Advances is removing blanks (” “)
- Why Editor reformats my code
- Keyboard shortcut for headings on safari
- Wordpres Tinymce custom button (Gavick guide)
- clasic editor – article categories customization?
- Error in backend: Failed to load plugin: tabfocus from url
- How can I change TinyMCE’s default block format?
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Preserve indentation, HTML5 shorthand in editor
- Visual editor popover or placeholder
- How to force wp excerpt to use br tag?
- Adding microdata using Structured Data Markup Helper HTML
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- `tinyMCE is not defined` after migrating site to server
- Remove heading tags on line break
- Custom shortcode editor [BackboneJS & TinyMCE)
- How do I separate my theme’s styles from editor styles?
- Preventing tinyMCE from auto formatting selected blocks of content
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- wp_insert_post() dont post content like i need it :(
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Cite-Tag for blockquotes
- Remove empty lines ( ) when author updates their post
- Can Rich Text features be configured per user?
- Blank TinyMCE and 404 errors on assets
- Remove MS Word comments from pasted text
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- Filter html of WordPress editor in visual mode only
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- How can I reset/remove background colour from a block