Richtext
Feature-rich WYSWYG text editor
Usage
Simple Usage
preview
vue
<template>
<p-richtext />
</template>
Control Variants
Richtext has 2 control variants, simple
and advanced
. Default is simple
preview
vue
<template>
<p-richtext variant="simple" />
<p-richtext variant="advanced" />
</template>
Placeholder
preview
vue
<template>
<p-richtext placeholder="Write something" />
</template>
Disabled State
preview
vue
<template>
<p-richtext disabled />
</template>
Readonly State
preview
vue
<template>
<p-richtext readonly />
</template>
Error State
preview
vue
<template>
<p-richtext error />
</template>
Binding v-model
Textarea value can be binding with v-model
.
preview
result:
-
vue
<template>
<p-richtext v-model="result" />
</template>
API
Props
Props | Type | Default | Description |
---|---|---|---|
placeholder | String | - | Input's placeholder |
disabled | Boolean | false | Disable state |
readonly | Boolean | false | Readonly state |
error | Boolean | false | Error state |
accept | String | - | Whitelist character can be inputted |
modelValue | String | - | v-model value |
Slots
Name | Description |
---|---|
There no slots here |
Events
Name | Arguments | Description |
---|---|---|
input | Native Input Object | Event when value inputted |