- Issue created by @jenbrueske
I'm attaching a patch, I can't seem to push to the issue branch. I'll keep trying.
From version 3.1.2 to 3.1.3, the class uswds_grid is removed from the upcast for uswds_grid in editing.js. This is causing other embedded content elements that are wrapped in <div>
tags to be upcast as grid.
Add a non-grid embedded content element (for instance, uswds accordion). In the source view, add a <div>
tag wrapping the embedded content piece. <div><embedded-content data-plugin-config="{"process_items":[{"heading":"test","body":{"value":"\u003Cp\u003Etest\u003C\/p\u003E","format":"full_html"},"remove_item":"Remove item"}],"add_item":"Add item"}" data-plugin-id="uswds_process_list" data-button-id="uswds_process_list"> </embedded-content></div>
When switching back to the non-source view, the content will disappear and the html changes to
<div class="undefined ck-widget" contenteditable="false">
</div>
Add back the classes piece to the upcast for uswds_grid present in 3.1.2, the issue resolves.
Active
3.1
Code
I'm attaching a patch, I can't seem to push to the issue branch. I'll keep trying.