├── .gitignore ├── index.html ├── index.js ├── vue-redactor.min.js ├── LICENSE ├── README.md └── vue-redactor.js /.gitignore: -------------------------------------------------------------------------------- 1 | # OS generated files 2 | dist/ 3 | .DS_Store 4 | .DS_Store? 5 | ._* 6 | .Spotlight-V100 7 | .Trashes 8 | ehthumbs.db 9 | Thumbs.db -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Vue Redactor 6 | 7 | 8 | 9 | 10 | 11 | 12 |

One Way Binding

13 |
14 | 15 | {{ content }} 16 |
17 | 18 |
19 |

Two Way Binding

20 |
21 | 22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import '/your-redactor-dist-path/redactor.min.js'; 2 | import './vue-redactor.js'; 3 | 4 | new Vue({ 5 | el: '#app-one', 6 | data() { 7 | return { 8 | content: '

Hello and welcome

', 9 | configOptions: {} 10 | } 11 | } 12 | }); 13 | 14 | new Vue({ 15 | el: '#app-two', 16 | data() { 17 | return { 18 | content: '

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

', 19 | configOptions: {} 20 | } 21 | } 22 | }); -------------------------------------------------------------------------------- /vue-redactor.min.js: -------------------------------------------------------------------------------- 1 | Vue.component('Redactor',{template:' 61 | 62 | ``` 63 | 64 | App 65 | 66 | ```js 67 | new Vue({ 68 | el: '#app', 69 | data() { 70 | return { 71 | content: '

Hello and welcome

', 72 | configOptions: {} 73 | } 74 | } 75 | }); 76 | ``` 77 | 78 | ### Call with options 79 | 80 | ```js 81 | new Vue({ 82 | el: '#app', 83 | data() { 84 | return { 85 | content: '

Hello and welcome

', 86 | configOptions: { 87 | plugins: ['table'] 88 | } 89 | } 90 | } 91 | }); 92 | ``` 93 | -------------------------------------------------------------------------------- /vue-redactor.js: -------------------------------------------------------------------------------- 1 | /* 2 | Redactor Vue Component 3 | Version 1.2 4 | Updated: June 9, 2021 5 | 6 | http://imperavi.com/redactor/ 7 | 8 | Copyright 2021, Imperavi Ltd. 9 | License: MIT 10 | */ 11 | Vue.component('Redactor', { 12 | template: '