Using CKEditor Inline Editor with Phoenix Live View, the form closes

The form component loses focus and closes when clicking on a button from the Inline Editor,

The reason is that the CKEditor plugin adds elements outside the #modal-content element, is there a way to either:

  1. prevent automatic exit on clicking on external elements
    or
  2. a way to add those extra elements as an exception

1 Like

Consider phx-ignore phx-update="ignore" (thank you @hubertlepicki)

1 Like

I think this is actually phx-update="ignore" and you use it on the DIV element that you mount CKEditor into.

https://hexdocs.pm/phoenix_live_view/dom-patching.html

2 Likes