The problem is “When the data managed by the plugin is edited. You have to set your own dirty-flag (e.g. a value in a hidden input field, setup a js-variable) and check your dirty-flag if the user leave the page. But how could you check if the data in the metabox is edited? Are there some suitable hooks in the plugin? If not, you can use jQuery/JS OnChange events if the metabox contains input fields. Our simply check the input fields in the metabox (empty or not).
It would be fine to know what the metabox contains or the plugin itself.
Related Posts:
- Hook the Keydown Event in the TinyMCE Post Editor
- Is it possible to reuse wp.media.editor Modal for dialogs other than media
- How to provide translations for a WordPress TinyMCE plugin?
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Inserting code to HTML view from a pop up initiated from visual view
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- Issue with iframe in TinyMCE
- How can I add an image upload field directly to a custom write panel?
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- How do i best handle custom plugin page actions?
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- How to include jQuery and JavaScript files correctly?
- How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Plugin API for easy admin list table generation, handling & exporting of MySQL tables?
- Export data as CSV in back end with proper HTTP headers
- Using TinyMce with textareas in meta boxes on custom post types
- How to implement color picker from wordpress in my plugin?
- How can I run AJAX on a button click event?
- Add async script
- Completely remove WP_Admin_Bar for specific user roles
- Can I use the wp media uploader for my own plugin?
- How-to implement admin Ajax inside an admin WP_List_Table?
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Test to see if jQuery or Prototype is queued by another plugin?
- Include third party Javascript library which is not included in WordPress
- Show message on wordpress admin dashboard
- jQuery in header or footer
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- how to use thickbox in admin?
- How do you create a custom edit.php / edit pages page
- Cancel post save
- Add a jQuery function to admin pages
- How to Add a .js file Only in one specific Page Dynamically to Head
- TinyMCE 4.7.11 – Enable hidden WordPress core plugins? (referencing a wp-includes from plugin.php)
- Using JavaScript in WordPress page to call for server data using AJAX
- Pass javascript result to shortcode executer function
- Filterable posts using categories
- How to get values from Tinymce visual editor popup?
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- Add language localisation to javascript alert?
- Stop unauthorised file access
- How to enable or disable check boxes in custom post type
- Redirect with message after admin_post.php
- Uncaught ReferenceError: kpoejy is not defined
- How to display archive by selecting year and then selecting month
- Remove from a div by class name from post page if post author role is not administrator
- How to display properly exception or echo string after posting in plugin?
- Same header/footer in Admin, across all network sites in multisite
- Get (eventual) permalink from post within Edit Post in Admin panel
- get_option() is undefined in TinymceWindowManager
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Add Button to TinyMCE Custom Menu
- How to add conent (text) to Add New pages form of admin in WordPress
- Forcing ALL plugin Admin menus into a separate menu
- Why if i enqueue the tinymce script i get undefined error
- Post data in wp-admin to external database
- admin page passing $_POST variables to itself
- WordPress multiple user roles accessing on their information on one site?
- On one of my sites a file is shown as 404 but the file IS there
- modify buddpress adminbar only in admin pages
- Ajax in Plugins: returns the whole page
- Loading jQuery library from WordPress admin
- How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?
- How can i add insertion point between inner blocks in my custom block like core blocks
- How to change the headline title for an admin page in a plugin?
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- How to get the value entered in the input field in wordpres
- How react js and other Javascript Technologies works on WordPress plugin?
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- How do I display and edit other posts within the ‘Edit Post’ area of Wp-Admin Dashboard
- How to prepend a header section to all pages related to my WordPress Plugin
- Trouble Importing whatsapp-web.js in a WordPress Plugin Development
- Insert meta-description into Yoast-SEO input-field via JavaScript
- Reinitiate Gutenburg’s blocks using javascript
- how to add contact form 7 shortcode in javascript variable
- Insert text programmatically in WordPress Gutenberg Editor
- Javascript function defined in view.js not reachable from save.js
- How to move custom gutenberg block controls from settings to styles tab?
- How to use useSelect to retrieve the currently default fontFamily?
- Event when Modal is opened/visible
- How to apply a javascript code on certain parts of elementor made pages?
- Update Cache on Save Instead of Clearing It?
- TinyMCE – Unable to load the editor in vue front-end plugin page
- Cannot call a class as a function in block plugin react component
- Extend backbone for add new custom Rest Api
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- Gutenberg move post/page title to Editor sidebar document panel
- configure additonal build files in the @wordpress/create-block
- Is It Possible to Use the Block Editor’s Notification Feature to Send Another Notification After the Post Is Saved?
- Create child of child custom page in wp-admin
- WordPress Plugin, Elementor and the ReferenceError nightmare
- Load specific CSS file
- How to use native wordpress translation domain inside a custom plugin?
- Select a Text for CSS
- WordPress – Filter users list count
- Customize Message