All Projects → zhuowenli → vue-ckeditor

zhuowenli / vue-ckeditor

Licence: MIT license
✏️ Vue2.0 Ckeditor component.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-ckeditor

janak
Your next vue.js package!
Stars: ✭ 26 (+52.94%)
Mutual labels:  vue2
lavas-cnode
A PWA for cnodejs.org written by Baidu-Lavas.
Stars: ✭ 13 (-23.53%)
Mutual labels:  vue2
element-ui-demo
A element-ui admin base on vue2
Stars: ✭ 18 (+5.88%)
Mutual labels:  vue2
generator-vue-impression
Yeoman generator for mobile Vue 2.0 project.
Stars: ✭ 13 (-23.53%)
Mutual labels:  vue2
new ckeditor
Ruby on Rails + CKEditor 5
Stars: ✭ 27 (+58.82%)
Mutual labels:  ckeditor
vue-unstated
A tiny state management library for Vue Composition API.
Stars: ✭ 30 (+76.47%)
Mutual labels:  vue2
fluent-vue
Internationalization plugin for Vue.js
Stars: ✭ 137 (+705.88%)
Mutual labels:  vue2
Coursera-Clone
Coursera clone
Stars: ✭ 48 (+182.35%)
Mutual labels:  ckeditor
html-integrations
The official JavaScript library for MathType, the leading formula editor and equation writer for the web by Wiris
Stars: ✭ 36 (+111.76%)
Mutual labels:  ckeditor
tdesign-vue-starter
A starter-kit for TDesign Vue UI components.
Stars: ✭ 199 (+1070.59%)
Mutual labels:  vue2
mediagui
go / vuejs / vuex powered application
Stars: ✭ 22 (+29.41%)
Mutual labels:  vue2
icmpmon
A simple ICMP monitor with web interface.
Stars: ✭ 33 (+94.12%)
Mutual labels:  vue2
ic-firebase-uploader
This component is a multi-file uploader for firebase
Stars: ✭ 21 (+23.53%)
Mutual labels:  vue2
d6
No description or website provided.
Stars: ✭ 22 (+29.41%)
Mutual labels:  vue2
vue-split-carousel
a carousel component for vue, meanwhile display several carousel item
Stars: ✭ 37 (+117.65%)
Mutual labels:  vue2
vue-elevator
🔝 A wrapper of elevator.js in Vue
Stars: ✭ 28 (+64.71%)
Mutual labels:  vue2
element-schema-form
A schema-based element-ui form component for Vue2.x.
Stars: ✭ 31 (+82.35%)
Mutual labels:  vue2
firefly
Firefly is a mobile wallet for Stellar ecosystem
Stars: ✭ 54 (+217.65%)
Mutual labels:  vue2
vue-code-view
A Vue 2 component like Vue SFC REPL `@vue/repl` : u can edit, run and preview the code effect display in real time on the web page.
Stars: ✭ 67 (+294.12%)
Mutual labels:  vue2
ckeditor-youtube-plugin
CKEditor Plugin to embed Youtube videos.
Stars: ✭ 53 (+211.76%)
Mutual labels:  ckeditor

VueCkeditor

Vue2.0 Ckeditor component.

Install

yarn add vueckeditor

Usage

VueCkeditor is using ckeditor external.

To start using CKEditor on your website, add a single <script> tag to your HTML page:

<script src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js"></script>

Or visit the official CKEditor Download site. And click the Download CKEditor button to get the .zip installation file. If you want to try out more editor features, you can download the Full Package instead.

Unpack (extract) the downloaded .zip archive to the ckeditor directory in the root of your website.

<script src="/path/to/ckeditor.js"></script>

Import VueCkeditor to your page

Single ckeditor

<template lang="pug">
  #app
    vue-ckeditor(v-model="content")
</template>

<script>
  import VueCkeditor from 'vueckeditor';

  export default {
    components: {
      VueCkeditor
    },
    data() {
      return {
        content: 'Hello World!',
      };
    }
  }
</script>

Multi ckeditor

<template lang="pug">
  #app
    vue-ckeditor(v-model="contentA" id="editor-a")
    vue-ckeditor(v-model="contentB" id="editor-b")
</template>

<script>
  import VueCkeditor from '../src/vueckeditor.vue';

  export default {
    components: {
      VueCkeditor
    },
    data() {
      return {
        contentA: 'Hello World!',
        contentB: 'Hello World!',
      };
    }
  }
</script>

Props

id

  • Type: String
  • Required: false
  • Default: null

height

  • Type: String
  • Required: false
  • Default: 300px

toolbar

You can find toolbar list of Toolbar Configurator.

  • Type: Array
  • Required: false
  • Default:
[
  'Format',
  ['Bold', 'Italic', 'Strike', 'Underline'],
  ['BulletedList', 'NumberedList', 'Blockquote'],
  ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
  ['Link', 'Unlink'],
  ['FontSize', 'TextColor'],
  ['Image'],
  ['Undo', 'Redo'],
  ['Source', 'Maximize']
]

language

  • Type: String
  • Required: false
  • Default: 'zh-cn'

extraplugins

  • Type: String
  • Required: false
  • Default: ''

TIP!!

Update components value with id: https://jsfiddle.net/zhuowenli/okx75cem/

Folder structure

  • src/: Source files for this component
    • vueckeditor.vue The component itself
  • example/: Example for demonstrating this component
    • index.js: Entry for the example
    • App.vue: The root component which we use to load this component
  • vbuild.example.js: Config file for your example
  • vbuild.component.js: Config file for your component
  • vbuild.unit.js: Config file for vbuild to run unit tests
  • package.json: App manifest
  • .editorconfig: Ensure consistent editor behaivor
  • .gitignore: Ignore files we don't need to push

Development

  • yarn example: Run example in development mode
  • yarn deploy: Deploy example to gh-pages
  • yarn build:cjs: Build component in commonjs format
  • yarn build:umd: Build component in umd format
  • yarn build: Build component in both format
  • yarn lint: Run eslint
  • yarn test:unit: Run unit tests using vbuild-karma

Check out your npm scripts, it's using vbuild under the hood.


Generated by create-vue-app

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].