From 269faced48d5569fa910657a05dd148d3143667b Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 26 Dec 2018 11:50:28 +0300 Subject: [PATCH] Implemented Editor Component --- package.json | 3 +- src/AppMenu.vue | 1 + src/components/editor/Editor.vue | 1054 ++++++++++++++++++++++++++++++ src/main.js | 2 + src/router.js | 5 + src/views/editor/EditorDemo.vue | 41 ++ 6 files changed, 1105 insertions(+), 1 deletion(-) create mode 100644 src/components/editor/Editor.vue create mode 100644 src/views/editor/EditorDemo.vue diff --git a/package.json b/package.json index 37f6b0ee1..acab6a5e9 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "sass-loader": "^7.0.1", "vue-template-compiler": "^2.5.17", "primeicons": "1.0.0", - "primeflex": "1.0.0-rc.1" + "primeflex": "1.0.0-rc.1", + "quill": "1.3.3" } } diff --git a/src/AppMenu.vue b/src/AppMenu.vue index f9df35126..54ef6c863 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -10,6 +10,7 @@
● Checkbox ● Chips + ● Editor ● InputSwitch ● InputText ● Listbox diff --git a/src/components/editor/Editor.vue b/src/components/editor/Editor.vue new file mode 100644 index 000000000..11c997e9e --- /dev/null +++ b/src/components/editor/Editor.vue @@ -0,0 +1,1054 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 721425180..657bd057c 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,7 @@ import Button from './components/button/Button'; import Card from './components/card/Card'; import Checkbox from './components/checkbox/Checkbox'; import Chips from './components/chips/Chips'; +import Editor from './components/editor/Editor'; import InputSwitch from './components/inputswitch/InputSwitch'; import InputText from './components/inputtext/InputText'; import Fieldset from './components/fieldset/Fieldset'; @@ -36,6 +37,7 @@ Vue.component('p-button', Button); Vue.component('p-card', Card); Vue.component('p-checkbox', Checkbox); Vue.component('p-chips', Chips); +Vue.component('p-editor', Editor); Vue.component('p-inputSwitch', InputSwitch); Vue.component('p-inputtext', InputText); Vue.component('p-listbox', Listbox); diff --git a/src/router.js b/src/router.js index 407d706c9..3df4c2111 100644 --- a/src/router.js +++ b/src/router.js @@ -36,6 +36,11 @@ export default new Router({ name: 'chips', component: () => import('./views/chips/ChipsDemo.vue') }, + { + path: '/editor', + name: 'editor', + component: () => import('./views/editor/EditorDemo.vue') + }, { path: '/fieldset', name: 'fieldset', diff --git a/src/views/editor/EditorDemo.vue b/src/views/editor/EditorDemo.vue new file mode 100644 index 000000000..15be7f5f1 --- /dev/null +++ b/src/views/editor/EditorDemo.vue @@ -0,0 +1,41 @@ + + + + +