extension-placeholder
package @remirror/extension-placeholder
class PlaceholderExtension
The placeholder extension which adds a placeholder annotation to an empty document.
Signature:
export declare class PlaceholderExtension extends PlainExtension<PlaceholderOptions>
Extends: PlainExtension<PlaceholderOptions>
(Some inherited members may not be shown because they are not represented in the documentation.)
property name
Signature:
get name(): "placeholder";
method createAttributes
Signature:
createAttributes(): ProsemirrorAttributes;
Returns:
method createPlugin
Signature:
createPlugin(): CreateExtensionPlugin;
Returns:
CreateExtensionPlugin
method onSetOptions
Signature:
protected onSetOptions(props: OnSetOptionsProps<PlaceholderOptions>): void;
Parameters:
Parameter | Type | Description |
---|---|---|
props | OnSetOptionsProps<PlaceholderOptions> |
Returns:
void
interface PlaceholderOptions
Signature:
export interface PlaceholderOptions
property emptyNodeClass
The class to decorate the empty top level node with. If you change this then you will also need to apply your own styles.
Signature:
emptyNodeClass?: string;
property placeholder
The placeholder text to use.
Signature:
placeholder?: string;
interface PlaceholderPluginState
Signature:
export interface PlaceholderPluginState extends Required<PlaceholderOptions>
Extends: Required<PlaceholderOptions>
(Some inherited members may not be shown because they are not represented in the documentation.)
property empty
Signature:
empty: boolean;