Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Error: uiCodemirror3 can only be applied to a textarea element #137

Open
chengtie opened this issue Feb 17, 2017 · 1 comment
Open

Error: uiCodemirror3 can only be applied to a textarea element #137

chengtie opened this issue Feb 17, 2017 · 1 comment

Comments

@chengtie
Copy link

According to the doc of ui-codemirror:

The ui-codemirror directive plays nicely with ng-model.

The ng-model will be watched for to set the CodeMirror document value (by setValue).

The ui-codemirror directive stores and expects the model value to be a standard javascript String.

However, my code (JSBin) returns an error Error: uiCodemirror3 can only be applied to a textarea element in the console.

Could anyone help?

Cheers

@ranadheerrannu
Copy link

can you check this
https://stackoverflow.com/questions/42245844/error-uicodemirror3-can-only-be-applied-to-a-textarea-element
to which element you applied this directive ? it should be applied to textarea

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants