Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kency1013 opened this issue Nov 20, 2018 · 2 comments
Assignees
Labels

Comments

@Kency1013
Copy link

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

@dangvanthanh dangvanthanh self-assigned this Nov 20, 2018
@dangvanthanh
Copy link
Owner

Hi @MinhPhuong1310

Can you describe your code you use.

@Kency1013
Copy link
Author

Kency1013 commented Nov 20, 2018

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.

@dangvanthanh dangvanthanh added this to Development in Vue.js and Ckeditor 4 Nov 21, 2018
@dangvanthanh dangvanthanh moved this from Development to Bug in Vue.js and Ckeditor 4 Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants