Hi. I’m using a custom editor based on TextEditor and the context menu I define for HoT does not appear when right clicking on a cell where the custom editor is active. How do I make the right click context menu work for custom controls as well?
Thank you for contacting us. In such case I will need to see a code demo with your implementation to determine what can be wrong. In general adding a custom editor shouldn’t alter the behavior of the context menu, and it should be still globally available.
Implementation of what precisely? Its a huge closed source project so I can’t show much of it here.
The custom editor is based on a code sample your support provided awhile back and applies iMask.JS to the textarea. The custom editor class itself doesn’t do much other than set properties of that text area.
Thank you for the code. I wasn’t able to make it fully work with iMask.JS so I checked it with the basic implementation of the input editor, but I wasn’t able to find anything that might cause the context menu not to open.
There are many thousands of lines of code that go into creation and configuration of the HoT table.
The application is completely dynamic and everything is configured via complex metadata so there is a lot of code that does dynamic layout and configuration. Plus I have like 15 HoT hooks to get the proper interactivity and behavior. All of that, for a single web page containing this HoT table, is driven by megabytes of metadata coming from a database that determines how that particular page should appear. Trying to recreate the exact same thing in a demo could take a very, very long time - I’d basically have to recode everything in a simplified from.
So how about we try a more practical approach. How does the context menu get assigned? Is it a single event, multiple events? Can I just apply the necessary assignment/configuration to the TEXTAREA HTML element in the createElements function? This system is supposed to be ready for testing next week, I don’t have extra time.
I understand. Maybe it would be best to schedule a quick call to check this issue? We have time on this Friday. If you are interested let me know about your time zone and availability at support@handsontable.com
This is Dan Rhodes. I’m the Dev manager at Pennymac who set up our Handsontable licenses and account. You’ve been chatting with James Higgins, the developer building the system. We have two licenses, but have only one developer using it at this time.
We would like to set up a call to discuss the issue and show our relevant code to solve the problem.
We are in US PST and MST time zones, so it would be best to schedule it as late on Friday as you’re available.
We can adjust as needed. You can set up the call or let me know a good time and I’ll set up a Zoom.
Unfortunately, tomorrow we are available only during the morning hours our time, so that will be in the middle of the night your time.
if you could share just minimal demo showing the issue that would help us a lot to determine the issue, if it’s related strictly to the iMask.JS and context menu not opening.
As James mentioned above, setting up even a minimal demo in jsfiddle would take considerable time and effort that we can’t spare at this time. We can work around the issue for a few days, but we will need to get it resolved soon. Can we set up a time to meet next week?