You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if this is not the right place to ask this question, but I am a bit lost. Our team is migrating from version 1 to version 2 and we have encountered an issue. One of our custom code is no longer working because the helper methods we are using, which are located in the dom.js, are not being exported anymore. This issue seems similar to a conversation I found at this URL #1083.
I was wondering if there is any particular reason why these helper methods are not being exported under the Trix object anymore. For now, I have copied the function to my own code, but it would be great to be able to access it directly from the library. Would you be open to changing this or would you prefer to keep these functions closed?
Thank you in advance for your help.
Trix version: 2.0.8
The text was updated successfully, but these errors were encountered:
Trix.handleEvent was never meant to be part of the public API. It was available under the Trix constant only because, before ESM modules were widely available, storing code in global variables was the best way to namespace it.
I don't think there's a compelling reason to make handleEvent public. In most cases you'd be better off using standard browser APIs directly.
I apologize if this is not the right place to ask this question, but I am a bit lost. Our team is migrating from version 1 to version 2 and we have encountered an issue. One of our custom code is no longer working because the helper methods we are using, which are located in the dom.js, are not being exported anymore. This issue seems similar to a conversation I found at this URL #1083.
We used to be able to access those like this
I was wondering if there is any particular reason why these helper methods are not being exported under the Trix object anymore. For now, I have copied the function to my own code, but it would be great to be able to access it directly from the library. Would you be open to changing this or would you prefer to keep these functions closed?
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: