[wp-trac] [WordPress Trac] #44134: Update to TinyMCE 4.7.13
WordPress Trac
noreply at wordpress.org
Wed May 30 13:24:45 UTC 2018
#44134: Update to TinyMCE 4.7.13
-------------------------------------------+---------------------
Reporter: hometowntrailers | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.9.7
Component: TinyMCE | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+---------------------
Comment (by danielbachhuber):
@azaozz I'm simply registering
[https://gist.github.com/danielbachhuber/7994605866299c57e2d9f9bac021f423
this GitHub Gist] with the following:
{{{
public static function filter_mce_external_plugins( $plugins ) {
$assets_path = dirname( dirname( __FILE__ ) ) .
'/assets';
$assets_url = plugins_url( 'assets', __DIR__ );
$filepath = '/js/tinymce-plugin.js';
$mtime = filemtime( $assets_path . $filepath );
$plugins['tastylinks'] = $assets_url . $filepath . '?v=' . (int)
$mtime;
return $plugins;
}
}}}
My TinyMCE plugin closely parallels wplink, so I'm not sure why wplink
works and my TinyMCE plugin doesn't.
{{{
(function(tinymce){
tinymce.ui.Factory.add( 'WPTastyLinkPreview',
tinymce.ui.Control.extend( {
}}}
vs.
{{{
( function( tinymce ) {
tinymce.ui.Factory.add( 'WPLinkPreview',
tinymce.ui.Control.extend( {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44134#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list