VueJs renderer for keystonejs
document
field
This is a VueJs port of @keystone-6/document-renderer package. However it currently has limited support with the following missing:
- relationships
- text alignment
- some inline marks
- keyboard
- superscript
- subscript
These may be supported in the future and contributions are welcome.
If you absolutely need to have these features, I recommend checking out keystone6-documentrenderer-vue
npm install -S keystone6-vue-renderer
## or
yarn add keystone6-vue-renderer
In your component import Document
and use it like so...
<script>
import { Document } from 'keystone6-vue-renderer';
...
export default ({
...
components: {
Document
},
...
})
</script>
<template>
<Document :document="document" />
</template>
npm run dev