Paste image from clipboard to upload

I’ve worked on compatibility on 2 of my plugins with Tiny v5. Mainly there are changes dealing with buttons. So it’s pretty easy to tweak the code to make it work with both versions.

function myprefix_is_mce_5() {
	global $tinymce_version;
	return isset($tinymce_version) && substr($tinymce_version, 0, 1) === '5';
1 Like

I can see that you don’t want to make a plugin, because you don’t want to do maintenance.
There isn’t a v5 yet.
And I won’t accept a PR to the update plugin for a new editor feature, since it’s out of scope. (If it’s in core, I’ll have to adjust the update plugin to handle it, though.)

1 Like

That’s fair :slight_smile:

But yeah, nothing to do with maintenance. I just don’t care about T v4. I will maintain it in the sense that I will use it on a daily basis and fix if something is not as it should.

I will keep working on it and we can implement it once the work on T v5 is done. So no more words about that. Peace, love, and chill forwards.

Do you have an estimated time to completion for v5 transition?

1 Like

The problem with this - as I see it, at least - is that TinyMCE v4 is what is available to the whole ClassicPress community today. So by far the quickest path available to get this working and available to everyone is to make it work with v4.

Still, if you want to keep this working only on v5, then that’s fine. Please do post your code somewhere though, so that we can see how it works and someone else can pick it up for v4 if desired!

In the broader open-source community it is common to encourage people not to ask for deadlines, especially for smaller projects where everyone working on it is a volunteer and the scope of work required is not always well-defined. I think we should adopt that mindset and expectation with ClassicPress as well.


Great! Will do :slight_smile:

Great idea too! Let’s do that :slight_smile:

I’m testing tiny 5, enriched editor, tiny 4.9.11 and 2 of my plugins that add buttons to the editor on 2 sites (one production and one with the develop branch of CP). If you publish i can add it to my test.

Really I’m very bad with JS but I can try to help with tiny 4 compatibility.

1 Like

You can see the currently available version published here.

I still have to work on attachments as @viktor proposed and copying the image directly from the “screenshot to clipboard tool”. Currently only works by directly copying the file from the system.

The positive side of merging this into the current research plugin is that I can work on this without interfering with the other tasks at all. But yeah if that’s not an option, I’ll keep it updated in the forked repo.


Are you planning to make it a standalone plugin (without the whole editor)?

1 Like

No. This is just something that I want to see added to the core TinyMCE v5 editor. Not as a plugin. It’s a basic feature that some users expect to have when using a WYSIWYG editor.

This petition will be closed but you can monitor its progress on GitHub:

This topic was automatically closed after 3 days. New replies are no longer allowed.