vue-ckeditor2 icon indicating copy to clipboard operation
vue-ckeditor2 copied to clipboard

Unable to remove text formatting (bold, italic, underlined etc.) once applied

Open Kency1013 opened this issue 7 years ago • 2 comments

When I redirect to page, ckediter text format item not active but when I reload page it will normal ck1 ck2

Kency1013 avatar Nov 20 '18 09:11 Kency1013

Hi @MinhPhuong1310

Can you describe your code you use.

dangvanthanh avatar Nov 20 '18 10:11 dangvanthanh

Hi @dangvanthanh In page 'list-post' I have button update

<nuxt-link :to="`/post/template-design?id=${item._id}`">Update</nuxt-link>`
When click button redirect to page 'template-design' then get data with 'id'
`data: () => ({
  setting: null,
    configCKEditor: {
                toolbar: [
                    {name: 'font', items: ['FontSize', 'TextColor', 'Bold', 'Italic', 'Underline']},
                    {name: 'format', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'Link', 'Unlink', 'CopyFormatting', 'RemoveFormat']},
                ],
                height: 100,
                language: 'en',
            },
}),
created() {
  this.getTemplate(this.$route.query.id);
  this.setting.content = data.content
}
<vue-ckeditor v-model="setting.content" :config="config.configCKEditor" @input="save"/>

When I I redirect to page 'template-design' from other page, icon 'bold, italic, underlined ' can't focus but when reload page it normal.

Kency1013 avatar Nov 20 '18 11:11 Kency1013