Welcome to elixirforum!
Take a look at this example of a WYIWYG JS editor populating a hidden input form field via a LiveView client side hook: