TinyMCE: wpView improvements:

- Better structure, simpler "view" registration, better extensibility.
- Better inline documentation.
- Don't show a placeholder for pasted link until we know the link is "embeddable'.
And many more improvements. Props iseulde. See #31412.

git-svn-id: https://develop.svn.wordpress.org/trunk@31546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-02-25 23:12:08 +00:00
parent 2fb11a4ae4
commit 3d36949893
4 changed files with 700 additions and 773 deletions

File diff suppressed because it is too large Load Diff

View File

@ -237,7 +237,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
return;
}
event.content = wp.mce.views.toViews( event.content );
event.content = wp.mce.views.setMarkers( event.content );
});
// When the editor's content has been updated and the DOM has been
@ -341,7 +341,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
editor.focus();
}
wp.mce.views.edit( view );
wp.mce.views.edit( editor, view );
return false;
} else if ( editor.dom.hasClass( event.target, 'remove' ) ) {
removeView( view );

View File

@ -1205,7 +1205,7 @@ function wp_print_media_templates() {
</script>
<script type="text/html" id="tmpl-editor-gallery">
<# if ( data.attachments ) { #>
<# if ( data.attachments.length ) { #>
<div class="gallery gallery-columns-{{ data.columns }}">
<# _.each( data.attachments, function( attachment, index ) { #>
<dl class="gallery-item">

View File

@ -18,7 +18,7 @@ $wp_db_version = 31532;
*
* @global string $tinymce_version
*/
$tinymce_version = '4107-20141130';
$tinymce_version = '4107-20150225';
/**
* Holds the required PHP version