Title: [Plugin: Front-end Editor] Callbacks?
Last modified: August 20, 2016

---

# [Plugin: Front-end Editor] Callbacks?

 *  Resolved [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/)
 * Is there an option to fire a callback JS function when the user hits save?
 * [http://wordpress.org/extend/plugins/front-end-editor/](http://wordpress.org/extend/plugins/front-end-editor/)

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644325)
 * Before or after the content is actually saved?
 * The Save button on the Aloha panel or on the other elements?
 *  Thread Starter [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644437)
 * After the content is saved. I’m talking about the save button for the ‘input’
   and ‘textbox’ editors.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644448)
 * You can do this:
 *     ```
       jQuery(document).delegate('.fee-form-save', 'click', function() {
         // do whatever
       });
       ```
   
 *  Thread Starter [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644451)
 * Ah, just like that. Thought I had to go at the code with an axe and hack my way
   in 😀
 * Big THANX for such a quick reply 🙂
 *  Thread Starter [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644462)
 * Hmm, another related question, what var is the text that is being saved stored
   in? I tried doing as you wrote above using the original html selectors to apply
   some regex to the text being saved but with no luck. So I kinda need to know 
   where the text is being stored.
 * Here’s what i’m trying to do:
 *     ```
       $('myNodename').on('click', '.fee-form-save', function(){
           $('myNodename').text().replace(/^/, '- ');
       })
       ```
   
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644463)
 * You can do that in PHP, using the ‘pre_post_content’ filter:
 *     ```
       function my_post_content_sanitization( $content ) {
         return '- ' . $content;
       }
       add_filter( 'pre_post_content', 'my_post_content_sanitization' );
       ```
   
 *  Thread Starter [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644466)
 * Interesting… THANX!

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

The topic ‘[Plugin: Front-end Editor] Callbacks?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/front-end-editor.svg)
 * [Front-end Editor](https://wordpress.org/plugins/front-end-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-editor/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [techouse](https://wordpress.org/support/users/techouse/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-callbacks/#post-2644466)
 * Status: resolved