ckeditor-nuxt
ckeditor-nuxt copied to clipboard
ANnoying placeholders
How to remove the Type your title with h1, and type or paste content, it's really annoying.
You can achieve that by passing a proper editorConfig values. Take a look at the code below.
<template>
<client-only placeholder="loading...">
<ckeditor-nuxt v-model="contentHolder" :config="editorConfig" />
</client-only>
</template>
<script>
export default {
components: {
'ckeditor-nuxt': () => import('@blowstack/ckeditor-nuxt')
},
data() {
return {
editorConfig: {
title: {
placeholder: 'h1 - type or paste content'
},
},
contentHolder: ""
}
}
}
</script>
the title placeholder is mandatory apparently when you don't put something in it transform the first element in h1
Is there a way to disable the Title plugin ?
Sure, Just past the following config. You can apply this to other plugins as well.
editorConfig: {
removePlugins: ['Title'],
}
Nice Thanks !