mbouclas / tinymce-vue-2

A vue 2 component for TinyMCE
47 stars 15 forks source link

adding tinymce plugins #13

Open stusmitharoo opened 6 years ago

stusmitharoo commented 6 years ago

This is not an issue how do you pass plugins to the component to customize toolbar ie color picker and image upload

Thank ou in advance

mbouclas commented 6 years ago

First you need to read the official docs, then you can change the toolbar like so

<tiny-mce id="descriptionLong"
        v-model="descriptionLong"
        :toolbar="'undo redo'"
></tiny-mce>
stusmitharoo commented 6 years ago

Ok thanks theres no plugin prop to pass to component just add straight to toolbar thanks

saaiful commented 6 years ago

<tiny-mce id="details" :toolbar="'code forecolor backcolor'" v-model="single.content" :other-props="{plugins: 'code textcolor colorpicker'}" .... and copy the plugins folder to the server/apps public root.