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

Editor readonly not working due to typo #369

Closed
ShuiTaCode opened this issue Jul 8, 2020 · 1 comment
Closed

Editor readonly not working due to typo #369

ShuiTaCode opened this issue Jul 8, 2020 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ShuiTaCode
Copy link

https://github.com/primefaces/primevue/blob/2.0.0-rc.3/src/components/editor/Editor.vue

Fix: see below

props: {
        value: String,
        placeholder: String,
        readonly: Boolean,
        formats: Array,
        editorStyle: null
    },

...

mounted() {
        this.quill = new Quill(this.$refs.editorElement, {
            modules: {
                toolbar: this.$refs.toolbarElement
            },
            readOnly: this.readOnly,  // change readOnly to readonly
            theme: 'snow',
            formats: this.formats
        });
@cagataycivici cagataycivici self-assigned this Jul 10, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 10, 2020
@cagataycivici cagataycivici added this to the 2.0.1 milestone Jul 10, 2020
@cagataycivici
Copy link
Member

Nice catch! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants