vue-publisher
A content editing toolset for Vue.js
708
| Install | |
|---|---|
npm install vue-publisher |
|
| Latest Version: | 1.5.0 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Apr 4, 2021 |
| Links: | GitHub · npm |
Maintainer: sinisimattia
vue-publisher 🗞️
A pre-packaged zero-config collection of amazing tools for managing content.
This package includes:
- TipTap
- Reader (Original)
- ListEditor (Original)
Please go support tha packages' respective creators.
Install
Get vue-publisher as an NPM package:
npm i -S vue-publisher
Usage
The goal here is to keep everything as simple as possible, in fact, with just 2 components you can have a publisher and a reader to render your finished article from its native JSON form.
<template>
<div id="app">
<Publisher v-model="result" />
<Reader v-model="result" />
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import { Publisher, Reader } from 'vue-publisher';
export default Vue.extend({
name: 'ExampleApp',
data(){
return {
result: {},
}
},
components: {
Publisher,
Reader,
}
});
</script>
Customization
These components provide useful CSS classes to customize the look of your editor. The class structure is as follows:
// The editor's internal container
.editor {
// The commands container
.commands {
// The single command button
button {
background-color: red;
// A button when its property is activated
&.is-active {
background-color: green;
}
}
}
// The editor itself
.content {
color: black;
}
}
// The external component
.reader {
// The content
.content {
color: black;
}
}
Conclusion
This package is just for a quick implementation of the TipTap editor for Vue.js.
So, please, feel free to check them!
Mini-project by Mattia Sinisi
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.5.0 | ^2.6.11 | MIT | |
| 1.4.4 | ^2.6.11 | MIT | |
| 1.4.3 | ^2.6.11 | MIT | |
| 1.4.2 | ^2.6.11 | MIT | |
| 1.4.1 | ^2.6.11 | MIT | |
| 1.4.0 | ^2.6.11 | MIT | |
| 1.3.4 | ^2.6.11 | MIT | |
| 1.3.3 | ^2.6.11 | MIT | |
| 1.3.2 | ^2.6.11 | MIT | |
| 1.3.1 | ^2.6.11 | MIT | |
| 1.3.0 | ^2.6.11 | MIT | |
| 1.2.1 | ^2.6.11 | MIT | |
| 1.2.0 | ^2.6.11 | MIT | |
| 1.1.4 | ^2.6.11 | MIT | |
| 1.1.2 | ^2.6.11 | MIT | |
| 1.1.0 | ^2.6.11 | MIT | |
| 1.0.12 | ^2.6.11 | MIT | |
| 1.0.10 | ^2.6.11 | MIT | |
| 1.0.9 | ^2.6.11 | MIT | |
| 1.0.8 | ^2.6.11 | MIT | |
| 1.0.7 | ^2.6.11 | MIT | |
| 1.0.6 | ^2.6.11 | MIT | |
| 1.0.5 | ^2.6.11 | MIT | |
| 1.0.4 | ^2.6.11 | ||
| 1.0.3 | ^2.6.11 | ||
| 1.0.2 | ^2.6.11 | ||
| 1.0.1 | ^2.6.11 | ||
| 1.0.0 | ^2.6.11 |