cksource / ckeditor4-plugin-a11ychecker

Accessibility checker for CKEditor 4
Other
19 stars 12 forks source link

The scratchpad DOM position #8

Open mlewand opened 9 years ago

mlewand commented 9 years ago

Currently we're inserting scratchpad to the CKEDITOR.document.

Since Accessibility Checking engines rely on calculated styles for elements inside the inspected element, we have to make sure that styles will be applied to the content in scratchpad too.

This is especially important in case of a classic editor (since it's wrapped in an iframe).

The second thing is that scratchpad is currently maintained by the Controller class. It should be moved to EditableDecorator.

mlewand commented 9 years ago

Still we might try to avoid putting the scratchpad in the DOM, but trying to keep it simply in memory.