Changes between Initial Version and Version 1 of Ticket #29841, comment 7
- Timestamp:
- 12/24/2014 09:07:46 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29841, comment 7
initial v1 3 3 Thinking 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. 4 4 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.5 We 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.