Title: Code Button to Editor
Last modified: February 4, 2019

---

# Code Button to Editor

 *  Resolved [daileycon](https://wordpress.org/support/users/daileycon/)
 * (@daileycon)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/)
 * Is there a way to add a code button to the Advanced Editor? This button would
   let my users add source in code blocks .
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/#post-11167750)
 * Hello [@daileycon](https://wordpress.org/support/users/daileycon/)
 * I can suggest you the following extension which is working nice with Asgaros 
   Forum:
    [https://wordpress.org/plugins/enlighter/](https://wordpress.org/plugins/enlighter/)
 *  Thread Starter [daileycon](https://wordpress.org/support/users/daileycon/)
 * (@daileycon)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/#post-11167800)
 * I’ve tried that one but I couldn’t get it to work.
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/#post-11167819)
 * [@daileycon](https://wordpress.org/support/users/daileycon/)
 * You can try to add the following code to your themes functions.php:
 *     ```
       function mm_ejs_frontend_editing($allowed) {
       	return true;
       }
       add_filter('enlighter_frontend_editing', 'mm_ejs_frontend_editing');
       ```
   
 * Otherwise please also check if there are any options to enable editing inside
   the frontend. Also ensure that “Use minimalistic editor” is DISABLED in Forum-
   > Settings.
 *  Thread Starter [daileycon](https://wordpress.org/support/users/daileycon/)
 * (@daileycon)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/#post-11167838)
 * “Use minimalistic editor” is DISABLED
 * haha that worked! Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code Button to Editor’ is closed to new replies.

 * ![](https://ps.w.org/asgaros-forum/assets/icon-128x128.png?rev=1546717)
 * [Asgaros Forum](https://wordpress.org/plugins/asgaros-forum/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asgaros-forum/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asgaros-forum/)
 * [Active Topics](https://wordpress.org/support/plugin/asgaros-forum/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asgaros-forum/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asgaros-forum/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [daileycon](https://wordpress.org/support/users/daileycon/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-to-editor/#post-11167838)
 * Status: resolved