Access to blocks inside the description editor #42761
Replies: 5 comments 8 replies
-
Hi Igor, it's great that you are interested and concerned about the issue we've been facing lately. This problem has been quite challenging for me. I suggest that we refrain from using the sub-registry for both editor instances. I've created #42882 where we can test this out. Just wanted to let you know that I would appreciate feedback from the developers as I'm not entirely confident about this solution. I'm afraid I can't anticipate any potential issues with these changes. |
Beta Was this translation helpful? Give feedback.
-
My opinion if you're building your own custom editor, is that you should never use |
Beta Was this translation helpful? Give feedback.
-
Any updates regarding the availability of the content and annotations of the description? |
Beta Was this translation helpful? Give feedback.
-
As you mentioned, the data isn't persistent when the modal closes. I think you should find out how to store this editor instance externally. |
Beta Was this translation helpful? Give feedback.
-
@igorschoester I have a PR up for review that adds sidebar extensibility to the description modal editor. I haven't tested annotations support yet (it's on my list; I need to familiarize myself with annotations), but block selection and modification works (the PR includes a link to a test plugin that demonstrates this). Any feedback on description modal editor extensibility support/issues is appreciated... the PR has a list of some known issues that I will be following up on in the next week or so. |
Beta Was this translation helpful? Give feedback.
-
When opening the
Edit description
modal, you get the (Gutenberg?) block editor. However, the API does not seem to work at all.We would like to gain access to the blocks, and specifically the annotation API to highlight some content.
E.g.
Where the blocks selector returns an empty array. And the annotations do get added when we try with some manual data, however nothing seems to listen to it.
Is this going to be possible in the near future?
Beta Was this translation helpful? Give feedback.
All reactions