Follow

Why is it so much easier to define a whole new block than add `class` support to Gutenberg’s inline link editor?

Considering a dummy paragraph class, custom field or taxonomy (after all), which when present would trigger a `the_content` filter to add the appropriate class to the first link it encounters—if it isn’t already there.

Was thinking Jetpack’s Markdown block might support [a link](example.org/){.u-bookmark-of}, but alas. (ParseDown Extra does that stuff, but there’s no actively developed WP plugin for it. And it wouldn’t work with Gutenberg anyway.) The “Custom HTML” block might be your best bet.

@jan It wasn't designed with flexibility in mind. It was designed around a specific workflow.

@nathand There's a million blocks with a thousand settings each, but the simplest thing doesn't work. Also, I kinda remember why I hated WYSIWYG editors so much.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!