I created a few components in my app recently to run JS code after the DOM had been loaded (post-ember DOM).
After reading some of the component guides on emberjs.com I realize that components may not be intended for solutions like this.
What could I use instead of components to run custom JS code and make sure that it runs after certain DOM elements are loaded?
I am using a rich-text-editor library (QuillJS) and it requires a div element to initialize to. However the div element does not exist until after the Ember app has loaded. I’m open to any suggestions.
And then i just called {{quill-text}} from one of my templates and it worked. Also something to keep in mind, there is no styling by default. So i just went to the QuillJS website and inspected the element on one of their examples and just copied their CSS.
@oismail91 I don’t use Quill but this component would only ever allow a single instance of the component to be active at once. I suggest doing something like: