Considering FCKeditor's XHTML compliance, any ideas on how to work around with the following problem? Let's imagine the source being edited in FCKeditor is...
If, in WYSIWYG mode, you select that, copy it to the clipboard and then paste it, you end up with...
...which, of course, is no longer valid XHTML due to the document containing two elements with the same unique identifier. Is there any way to intercept any data coming from the clipboard so that, say, a plugin could pre-process it (scanning for unique identifier conflicts) before passing it to FCKeditor itself? Or would there be some other way to ensure that the document in FCKeditor is, before posted to the server, valid XHTML?
<p><strong id="id">test</strong></p>
If, in WYSIWYG mode, you select that, copy it to the clipboard and then paste it, you end up with...
<p><strong id="id">test</strong></p> <p><strong id="id">test</strong></p>
...which, of course, is no longer valid XHTML due to the document containing two elements with the same unique identifier. Is there any way to intercept any data coming from the clipboard so that, say, a plugin could pre-process it (scanning for unique identifier conflicts) before passing it to FCKeditor itself? Or would there be some other way to ensure that the document in FCKeditor is, before posted to the server, valid XHTML?