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:
parent
3146475ed8
commit
b799bd8e33
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -237,7 +237,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
|
||||||
return;
|
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
|
// 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();
|
editor.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
wp.mce.views.edit( view );
|
wp.mce.views.edit( editor, view );
|
||||||
return false;
|
return false;
|
||||||
} else if ( editor.dom.hasClass( event.target, 'remove' ) ) {
|
} else if ( editor.dom.hasClass( event.target, 'remove' ) ) {
|
||||||
removeView( view );
|
removeView( view );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1205,7 +1205,7 @@ function wp_print_media_templates() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-editor-gallery">
|
<script type="text/html" id="tmpl-editor-gallery">
|
||||||
<# if ( data.attachments ) { #>
|
<# if ( data.attachments.length ) { #>
|
||||||
<div class="gallery gallery-columns-{{ data.columns }}">
|
<div class="gallery gallery-columns-{{ data.columns }}">
|
||||||
<# _.each( data.attachments, function( attachment, index ) { #>
|
<# _.each( data.attachments, function( attachment, index ) { #>
|
||||||
<dl class="gallery-item">
|
<dl class="gallery-item">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* 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
|
* @global string $tinymce_version
|
||||||
*/
|
*/
|
||||||
$tinymce_version = '4107-20141130';
|
$tinymce_version = '4107-20150225';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the required PHP version
|
* Holds the required PHP version
|
||||||
|
|
Loading…
Reference in New Issue