Webflow only pastes its own elements; a developer built a way to paste SVG and HTML

Webflow's Designer accepts only its own elements on paste, so copying an icon from Figma or plain HTML and CSS into it does nothing. The usual workaround, a Code Embed, works but is a black box whose contents cannot be selected, classed, or styled in the Style panel. The developer behind devpack built SVG to Webflow and HTML & CSS to Webflow tools, plus a browser extension that performs the conversion directly when pasting into the Designer. The approach works by inspecting the JSON Webflow places on the clipboard, which uses a flat list of nodes and a separate styles list, and then writing equivalent JSON that the Designer will paste. Because the modern Clipboard API cannot write that custom type, the developer relies on the older copy-event method, which remains the only viable option despite being deprecated.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in