Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #7392, comment 37


Ignore:
Timestamp:
07/24/2013 08:34:15 PM (11 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7392, comment 37

    initial v1  
    11In .4.diff there is no need to run the content through switchEditors.pre_wpautop() again. We wait for TinyMCE to load, then we call editor.save() which serializes the iframe html, runs it through all filters including pre_wpautop() and places it in the textarea. At this point the content of the textarea is exactly the same as when autosave retrieves it (if the user didn't type anything).
    22
    3 We need to load the content into TinyMCE and then save it back to the textarea as when serializing the iframe html the order of tag attributes may change and trigger a false positive (i.e. `<a title="..." src="...">` would become `<a src="..." title="...">`).
     3We need to load the content into TinyMCE and then save it back to the textarea as when serializing the iframe html the order of tag attributes may change and trigger a false positive (i.e. `<img title="..." src="...">` would become `<img src="..." title="...">`).