문제

I'm trying to convert my sites to Gutenberg. I like it!!

But how do I make it possible to make category-descriptions using the new editor?

Gutenberg editor in category description

도움이 되었습니까?

해결책

This isn't possible at the moment, Gutenberg is a post editor that relies on REST API endpoints, it's not an arbitrary content area editor as TinyMCE is.

Given some modification though it could be made to work with a custom data model and be a replacement, but it's not a trivial task, and what's involved is in flux. It would be best to ask over on the Gutenberg GitHub issue tracker

다른 팁

I had been able to do this, more or less, by:

  1. Creating the content and format I wanted within the Guttenberg editor in a post
  2. Switching from the visual to the code editor
  3. Copying the code across into the "Archive Intro Text" of the category using the text - not visual - editor

The update to WP 5.7 from 5.6.2 has however messed up the formating

As you can see I'm in no way competent to write code and have created for myself a lovely dead end with my workaround, but I thought the knowledge might be useful, and I for one would be very grateful if this functionality was included in future releases.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top