Creating a WYSIWYG Editor in LiveView with S3 Image Uploads

82
clicks
Creating a WYSIWYG Editor in LiveView with S3 Image Uploads

Source: dev.to

Type: Post

This tutorial guides you through the process of creating a WYSIWYG editor using LiveView in Elixir, where users can insert images that are automatically uploaded to an S3 bucket. The setup includes Elixir 1.18.1, Erlang OTP 27, and Phoenix 1.18.0-rc. You will use Quill.js for the editor, convert HTML to Markdown, decode base64 images, upload them, and save the content in a database while preserving styling. The tutorial also covers setting up hooks, handling errors, and styling the output using Tailwind CSS and its typography plugin.

© HashMerge 2025