storyblok / storyblok-js

JavaScript SDK to connect Storyblok with your favourite framework that we don't have an official SDK for.
http://storyblok.com/
MIT License
39 stars 20 forks source link

[Storyblok bridge V2] When listening to "input" events, event payload doesn't return `_editable` key for bloks nested within Rich Text #231

Closed alex-mcgovern closed 10 months ago

alex-mcgovern commented 1 year ago

Expected Behavior

When attaching a handler to the "input" event like this:

const setEntryData = () => {
    // ... set data
}

sbBridgeInstance?.on(
        "input",
        (event: StoryblokEventPayload | undefined) => {
          if (event?.story) {
            setEntryData({
              data: {
                story: event.story,
              },
            });
          }
        }
      );

The content of event.story should include the _editable key for nested bloks within Rich Text Fields.

Current Behavior

Steps to Reproduce

fgiuliani commented 1 year ago

Hi @alex-mcgovern the Product team of Storyblok added some changes to the Storyblok Bridge, one of them related to this case. Can you check if it's working now for you?