sachinchoolur / angular-trix

A rich WYSIWYG text editor directive for angularjs.
http://sachinchoolur.github.io/angular-trix/
MIT License
328 stars 62 forks source link

Doesn't work at all #33

Open thany opened 7 years ago

thany commented 7 years ago

It doesn't work. Like, at all.

I've installed trix and angular-trix using bower. Works. Then I included the scripts using requirejs. Works too. Then I required the angularTrix requirejs-module. Works as well. Then I required the angularTrix angular module. Still works fine. Then I added this to my page:

<trix-editor angular-trix ng-model=foo></trix-editor>

Which doesn't do anything. It just renders in the DOM as:

<trix-editor angular-trix="" ng-model="foo" class="ng-pristine ng-untouched ng-valid ng-scope ng-isolate-scope ng-empty"></trix-editor>

So not much at all.

I get no errors in the console. No network errors. No security errors. Nothing.

Angular 1.6.4, Requirejs 2.3.3, Firefox 52 & Chrome 57.

ranamateenft commented 7 years ago

same issue I am too facing

Shreeshag commented 7 years ago

@thany

Can you create a Plunker with your code..?

ranamateenft commented 7 years ago

sorry cant. but it is not showing anything on page

thany commented 7 years ago

Found why this is happening. Angular-trix doesn't require trix. Doesn't support any type of AMD system at all. That explains. Too bad it doesn't say anything about trix.js not being present.

However, I'm now facing a huge number of CSP errors, so effectively it still doesn't work (nearly) at all.

ebewley commented 6 years ago

Almost a year later, I'm having a similar issue with version 1.0.2. Everything seems to work except that nothing is ever comitted to the model. I even added the ng-model-options="{updateOn:'blur'}" like the plunker showed, and still nothing. Moving on to a different directive/control that actually works.