Title: Error when classes is blank
Last modified: April 13, 2022

---

# Error when classes is blank

 *  [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-classes-is-blank/)
 * This seems very useful, well done. I was looking for a way to support `<mark>`.
 * When I set up a new formatting option with Type Value of `mark`, no classes are
   necessary to add.
 * After saving settings, the plugin echos the following error into the table…
 * `Undefined index: classes in /Users/myname/Local Sites/the-map/app/public/wp-
   content/plugins/tinymce-custom-styles/tinymce-custom-styles.php on line 631`
 * Only adding an arbitrary class name , eg. “`none`“, removes the error. But I 
   don’t need to use any classes.
 * Looks like you need to properly check whether the user has added `classes`.

The topic ‘Error when classes is blank’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-custom-styles/assets/icon-256x256.jpg?rev=1452774)
 * [TinyMCE Custom Styles](https://wordpress.org/plugins/tinymce-custom-styles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-custom-styles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-custom-styles/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-custom-styles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-custom-styles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-custom-styles/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [parakeet](https://wordpress.org/support/users/parakeet/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-classes-is-blank/)
 * Status: not resolved