diff --git a/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js b/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js index 5aa0bb76f4..269f7d7977 100644 --- a/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js +++ b/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js @@ -116,7 +116,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { event.content = event.content.replace( //g, function( match, moretext ) { return ''; + 'class="wp-more-tag mce-wp-more" alt="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />'; }); } @@ -125,7 +125,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { event.content = event.content.replace( //g, '' ); + 'alt="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />' ); } if ( event.load && event.format !== 'raw' ) { @@ -144,10 +144,9 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { 'data-wp-preserve="' + encodeURIComponent( match ) + '" ' + 'data-mce-resize="false" ' + 'data-mce-placeholder="1" '+ - 'class="mce-object" ' + + 'class="mce-object mce-object-' + tag + '" ' + 'width="20" height="20" '+ 'alt="<' + tag + '>" ' + - 'title="<' + tag + '>" ' + '/>'; } ); } @@ -214,7 +213,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { classname += ' mce-wp-' + tag; title = tag === 'more' ? 'Read more...' : 'Next page'; title = __( title ); - html = ''; // Most common case. diff --git a/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/script.svg b/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/script.svg new file mode 100644 index 0000000000..e44a2cbd4a --- /dev/null +++ b/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/script.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/style.svg b/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/style.svg new file mode 100644 index 0000000000..e21ed1e370 --- /dev/null +++ b/src/js/_enqueues/vendor/tinymce/skins/wordpress/images/style.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css b/src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css index 7e7580fb5a..4a1bf892b4 100644 --- a/src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css +++ b/src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css @@ -160,6 +160,14 @@ img[data-mce-selected]::selection { background: transparent url( images/pagebreak.png ) repeat-y scroll center center; } +.mce-object-style { + background-image: url( images/style.svg ); +} + +.mce-object-script { + background-image: url( images/script.svg ); +} + /* Styles for formatting the boundaries of anchors and code elements */ .mce-content-body a[data-mce-selected] { padding: 0 2px;