# extendify/3.1.3/src/QuickEdit/lib/quick-edit-handlers.js

Extendify, version 3.1.3. 33 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.3/code/src/QuickEdit/lib/quick-edit-handlers.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.3/raw/src/QuickEdit/lib/quick-edit-handlers.js
- Modified: 2026-06-11T18:37:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.3/code/src/QuickEdit/lib/quick-edit-handlers.js#L10-L20`.

```javascript
// Single source of truth for "does Quick Edit have an editor for this
// blockType?" — hover-bar uses it to gate the Quick Edit pill, and
// keyboard-entry uses it to skip opening an editor for blocks that
// only get Ask AI. InlineEditor still owns the actual handler routing;
// if a type is in this set but InlineEditor has no branch, the user
// sees UnsupportedNotice (self-healing safety net).
//
// Keep aligned with TEXT_STRATEGIES + PICKER_STRATEGIES +
// MODAL_BLOCK_TYPES in components/InlineEditor.jsx.
export const QUICK_EDIT_BLOCK_TYPES = new Set([
	'core/paragraph',
	'core/heading',
	'core/button',
	'core/image',
	'core/cover',
	'core/media-text:image',
	'product:image',
	'core/site-title',
	'core/site-tagline',
	'core/site-logo',
	'core/social-link',
	'core/navigation-link',
	'core/navigation-submenu',
	'product:name',
	'product:short_description',
	'product:description',
	'product:price',
	'wpforms:field',
]);

export const hasQuickEditModalFor = (blockType) =>
	!!blockType && QUICK_EDIT_BLOCK_TYPES.has(blockType);

```
