ckeditor-nuxt icon indicating copy to clipboard operation
ckeditor-nuxt copied to clipboard

ANnoying placeholders

Open fre2mansur opened this issue 4 years ago • 5 comments

How to remove the Type your title with h1, and type or paste content, it's really annoying.

fre2mansur avatar Dec 19 '20 15:12 fre2mansur

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>

blowstack avatar Dec 21 '20 18:12 blowstack

the title placeholder is mandatory apparently when you don't put something in it transform the first element in h1

Br4x avatar Jan 08 '21 14:01 Br4x

Is there a way to disable the Title plugin ?

Br4x avatar Jan 08 '21 14:01 Br4x

Sure, Just past the following config. You can apply this to other plugins as well.

editorConfig: {
       removePlugins: ['Title'],
     }

blowstack avatar Jan 10 '21 11:01 blowstack

Nice Thanks !

Br4x avatar Jan 10 '21 14:01 Br4x