79641317

Date: 2025-05-27 23:23:26
Score: 2
Natty:
Report link

In addition to @Ruan Mendes, to have the context menu display at the proper location you can just get the component current XY focus value , then add it to the coordinates:

    var click_x_pos = e.pageX + html_editor.getFocusEl().getX();
    var click_y_pos = e.pageY + html_editor.getFocusEl().getY();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Ruan
  • Low reputation (1):
Posted by: Adekunle Owolabi