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

Commit

Permalink
chore: re-allow textarea tags
Browse files Browse the repository at this point in the history
Sorry I change my mind.
We need feedbacks on possible problem with it. So it's not a solution to just prohibit it...
  • Loading branch information
douglasduteil committed Jul 7, 2014
1 parent fcad0ce commit 64b9c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Finally, add the directive to your html,
as attribute :

```html
// Not well supported yet
// <textarea ui-codemirror></textarea>
// Not well supported yet but still... We need feedbacks to improve it...
<textarea ui-codemirror></textarea>

<div ui-codemirror></div>
```
Expand Down
8 changes: 4 additions & 4 deletions src/ui-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ angular.module('ui.codemirror', [])
value = iElement.text();

if (iElement[0].tagName === 'TEXTAREA') {
throw new Error('NOPE');
// codeMirror = window.CodeMirror.fromTextArea(iElement[0], {
// value: value
// });
// Might bug but still ...
codeMirror = window.CodeMirror.fromTextArea(iElement[0], {
value: value
});
} else {
iElement.html('');
codeMirror = new window.CodeMirror(function(cm_el) {
Expand Down

0 comments on commit 64b9c25

Please sign in to comment.