Skip to content
This plugin is new and currently in beta. For the stable version, please use the previous version of the plugin.

ContextActionType

Enum defining available context actions for blocks in the editor.

typescript
enum ContextActionType

Description

ContextActionType enumerates all the context actions that can be performed on blocks within the Stripo Email Editor. These actions appear in context menus when users right-click on blocks or access block options. Extensions can implement custom handlers for these actions or add them to their custom blocks.

Import

typescript
import { ContextActionType } from '@stripoinc/ui-editor-extensions';

Enum Values

SAVE_AS_MODULE

Saves the current block as a reusable module.

typescript
SAVE_AS_MODULE = 'saveAsModule'

Usage: Allows users to save frequently used blocks as modules for reuse across different emails.


IMPROVE_WITH_AI

Enhances the block content using AI assistance.

typescript
IMPROVE_WITH_AI = 'improveWithAI'

Usage: Triggers AI-powered improvements for text, layout, or styling.


MOVE

Moves the block to a different position in the email.

typescript
MOVE = 'move'

Usage: Enables drag-and-drop or cut-and-paste functionality for blocks.


COPY

Creates a copy of the block.

typescript
COPY = 'copy'

Usage: Duplicates the block for use elsewhere in the email.


REMOVE

Deletes the block from the email.

typescript
REMOVE = 'remove'

Usage: Permanently removes the block from the template.


CLEAR_CONTAINER

Removes all content from a container block.

typescript
CLEAR_CONTAINER = 'clearContainer'

Usage: Empties a container while preserving its structure and settings.


EXTERNAL_DISPLAY_CONDITION

Sets display conditions using an external library.

typescript
EXTERNAL_DISPLAY_CONDITION = 'externalDisplayCondition'

Usage: Integrates with external services to set conditional display rules.