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.
Built from https://develop.svn.wordpress.org/trunk@31546


git-svn-id: http://core.svn.wordpress.org/trunk@31527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-02-25 23:13:25 +00:00
parent 3146475ed8
commit b799bd8e33
7 changed files with 703 additions and 776 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

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 );

File diff suppressed because one or more lines are too long

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

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31545';
$wp_version = '4.2-alpha-31546';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
@ -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