Problem/Motivation
Discovered while working on #3206522: Add FunctionalJavascript test coverage for media library.
Steps to reproduce
Override alt for some <drupal-media>
I expect this to trigger a XHR to in the preview show the updated alt
But this does not happen.
I already spent ~45 mins debugging this and searching the CKEditor 5 docs, unsuccessfully. The editingDowncast in drupalmediatoolbar.js is supposed to be invoked whenever the model is changed, but that is definitely not happening.
Perhaps this means that we're setting the model attributes incorrectly?
Proposed resolution
TBD
Remaining tasks
TBD
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
wim leersComment #3
wim leersComment #5
wim leersI think #3262492: Refactor isMediaUrl to more generic API that supplies frontend metadata about media entities fixed this — @lauriii, can you confirm?
Comment #6
wim leersComment #7
lauriiiThis was fixed by #3262492: Refactor isMediaUrl to more generic API that supplies frontend metadata about media entities and there's test coverage in
\Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest::testAlt.