basecamp / trix

A rich text editor for everyday writing
https://trix-editor.org/
MIT License
19.12k stars 1.12k forks source link

Using "contenteditable" in Attachments #1053

Open meesix opened 1 year ago

meesix commented 1 year ago

Hello,

I'm sorry, maybe it was discussed previously, but I couldn't find references. I want to create a specific element representing a two-column block. Here is what I'm doing;

` blockTools.insertAdjacentHTML("afterbegin", "

meesix commented 1 year ago

As far as I understood, an alternative will be using custom blockAttributes, though it seems like it's still impossible to assign custom CSS classes to new blocks, isn't it?