Jared Reich

Results 60 comments of Jared Reich

@okbel thanks very much for the feedback. Big update for pell coming soon with tons of fixes, hopefully I can work in a fix for this as well.

@okbel No worries. v1.0.1 includes a fix for the blockquote escaping, as well as making sure the first child element in the editor is properly wrapped in a tag (I...

Interesting, never knew about the shift+enter thing.

Sweet thanks @algorys - this will be part of V2

Thanks for the suggestion. Out of curiosity, when would you run this `destroy` method?

Interesting. This sounds like stuff that comes out-of-the-box with frameworks like Vue and React. Old elements (and all events tied to those elements) are destroyed upon rendering a different route/page....

So I don't think this should be the responsibility of pell. If you delete the HTML that pell is contained within, all the related events will subsequently be destroyed, since...

It appears I may be wrong according to https://stackoverflow.com/questions/14040386/should-i-remove-event-handlers-from-element-before-removechild Re-opening.

More relevant links: https://stackoverflow.com/questions/12528049/if-a-dom-element-is-removed-are-its-listeners-also-removed-from-memory https://stackoverflow.com/questions/4386300/javascript-dom-how-to-remove-all-events-of-a-dom-object

@bcolucci thanks, lots of good stuff here. Only thing is the shortcuts for the window methods (e.g. `addEventListener`) do actually decrease the minified file size, especially when they are used...