Remove data attributes added in code view of the advanced WYSIWYG editor
Uppili Srinivasan
I strongly urge you to consider how the custom data attributes affect our ability to use the code view. If such data needs to be added for things to work on your end, they should be added
after
processing the page, and not rendered in the code view. The way it is implemented now adds undue complexity for your users to sort through your added code. It makes for a quite bad user experience.Log In
Michael Wood
For example, entering a simple image to a page via HTML on the code editor should not add extra data attributes.
I added:
After saving the page, that same HTML becomes:
<p><img data-block-id="mk2t4bem-srjzmg-002" src="https://files.document360.io/Images/Documentation/Test_Image.png" class="adv-wysiwyg-img" mediatype="img" alt="" width="auto" height="auto" dataalign="left" datadisplay="flex" data-type="media-content" fixaspectratio="false" autoaspectratio="false" shadow="no" border="no" round="no" link="" newtab="" style="width:auto;height:auto;"></p>
These extra data elements make it exceptionally difficult to edit pages in HTML. If these elements must be added, they should be added when displaying the page and not be present in the editor.
Uppili Srinivasan
Created on behalf of Michael Wood