Skip to content

Editor readonly not working due to typo #369

Closed
@ShuiTaCode

Description

@ShuiTaCode

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
        });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions