Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Editor does not respect ng-disabled #214

@richcocks

Description

@richcocks

Hi,

I am having issues getting this directive to follow ng-disabled. There seems to be an issue where in the toggleDisable function, the tinyInstance variable is always null.

Plunkr: https://plnkr.co/edit/7gnFLWZQkWtKhN68LJTs?p=preview

This shows the editor is not read only, despite the expression evaluating to true.

Additionally, even with a checkbox to control the value of test2:
https://plnkr.co/edit/QDuPfwAHr7mxfu3daMB7?p=preview

Here, the editor should start read only but does not, and only when un-checking and re-checking the checkbox does the editor go to read only.

Lastly, even in read only, it is possible to delete content but not add content to the editor, also the controls are not greyed out on the toolbar.

Is there something I am doing wrong that means the editor is behaving differently to than if I specify readonly through the editor setup options?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions