/

ContentEditable Recipes

You can use Maskito with contentEditable too.

Just wrap the element with maskitoAdaptContentEditable utility and use Maskito in the same way as HTMLInputElement / HTMLTextAreaElement .

No need to use maskitoAdaptContentEditable if you use @maskito/angular , @maskito/react or @maskito/vue with the default element predicate (it will be wrapped automatically).
    
    

Learn more in the "Core Concepts" section.

With built-in Time mask

#
Meeting time: 12:00

Multi-line support

#

Use white-space: pre for multi-line mode

Enter message:

Hello, world! How are you today? Read description of this example!