Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29841, comment 7


Ignore:
Timestamp:
12/24/2014 09:07:46 PM (11 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29841, comment 7

    initial v1  
    33Thinking we should go with the first option: having another arg on `wp.mce.views.toViews()` to indicate that we don't want a loading placeholder while waiting for the response. This would be a good addition that may be useful in other contexts too.
    44
    5 We can get this working in couple of ways: keep a reference to the <p> node in the TinyMCE plugin, fire an event when the server sends the embed code, check if the node content/text hasn't changed, then either add the whole wpView or leave it as-is if no match. Or we can match that node to a particular ajax request and replace on completion.
     5We can get this working in couple of ways: keep a reference to the content of the <p> node in the TinyMCE plugin, fire an event when the server sends the embed code, check if the node content/text hasn't changed, then either add the whole wpView or leave it as-is if no match. Or we can match that node to a particular ajax request and replace on completion.