collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
1 stars 2 forks source link

I can edit text inline of a simple text field like teaser title #106

Open djay opened 1 month ago

djay commented 1 month ago

Title block is actually a more complex case because the text is the metadata not in the block. maybe the simplest way to solve it would be instead of data-editable-field="..." have data-editable-metadatafield="..."?

MAX-786 commented 1 month ago

I think that's the interesting part with hydrajs now, is that we can make any field inline editable as long as it is being rendered from formData which we receive from plone, so maybe with simple instructions we can have like tell us which attribute to look for in htlm dom to make it contenteditable and 2nd thing what part of formData (json) it refers to so that we can keep it at sync with adminUi.

djay commented 1 month ago

@MAX-786 is there anything in the save json thats not metadata or block data?