[PLUGIN] - TinyMCE Advanced (v6)

I’ve added the options into both versions now.

@pork1977gm you are the best plugin developer of all the Bubble plugin developers :clap::clap::clap: seriously, legendary status.

1 Like

@pork1977gm I’m just familiarising myself with this plugin, great job so far - it’s got so much capacity to pack the punchy TinyMCE editor into my app.

I’m very keen to get the Maths plugin enabled but the toolbar icon is behaving oddly. My editor is inside a RE so in my ‘RE is opened’ workflow I am using the ‘Configure open source plugins’ action. When I enable ‘Math type’ (see image) and then load the RE, it’ll place a new toolbar icon each time the RE is opened. No other plugin seems to do this so it looks like a bug with this one. Is this something you can replicate on your side?

Thanks!

Hi @manipaje

I’ll take a look at it and see what’s going on. Leave it with me for a bit and I’ll get back to you as soon as I can.

1 Like

Can I just ask where you run the action and how? Is it running 3 times by any chance?

In theory, yes it is. It runs every time the RE is opened so it creates a new button each time. I’ve enabled all the other plugins in that list and the Maths one is the only plugin which renders a new button each time the RE is opened. Is there a condition I can place on this that checks ‘is loaded’? That might mitigate it.

Ok thanks. I’ve just fixed it, do you want to try the update I’ve just pushed.

Make sure these are lowercase

1 Like

hey @pork1977gm thats solved it! thank you for the speedy fix. I was using the standalone version but soon found maths popped up with the trial notice. As a premium plugin I’m now evaluating your cloud version & the associated costs of running a licensed TinyMCE.

My main concern now is how to manage ‘load’ counts of the editor. I’m hoping in a RE I can be smart but I need to check what happens within a session, if it’s loaded one or potentially 10’s of times as the RE is opened/closed. Tips welcome!

Have a look for a state called “Editor loads” which should keep track for you. I’m not at the laptop right now so can’t check to be 100% sure but I think it’s called that.

1 Like

@pork1977gm I’m back onto this & migrating my users to the TinyMCE (Standalone) plugin version of TinyMCE. I want to enable file uploads and ensure they follow privacy rules. Have you looked into adding ‘make files private’ and allowing us to choose which Thing they attach to?

At the moment I’m looking at a workaround workflow, which on file upload triggers a second upload, as private, a loop to replace the file URL in the HTML with the new private URL and then to delete the original upload. This is quite clunky and wanted to hear if the ‘mark as private’ s3 file option has been on your roadmap for this plugin?

To confirm: I’m on the standalone version.

I’ll add the attachTo parameter in @manipaje

That should make it a lot easier to do what you wanting. Sit tight, I’ll let you know when it’s done.

Paul

1 Like

Can you try the new update and let me know if it sorts your problem.

Update:
Sorry ignore that, I got something wrong, I will fix it later.

1 Like

Ok, should be good now. Let me know how you get on.

Yeah! Perfect. Amazing work and thanks for being so responsive. This is attaching uploads to the user and the Thing perfectly. Superior to my workaround. Thank you.

1 Like

No problems at all

Hi @pork1977gm In my testing I’ve found the image uploads are sometimes stored as base64 and not the original uploaded file. Is this configurable? The bubble database ‘manager’ tool gets angry with base64 records (it spits out >10MB storage warnings and encourages them to be stored as files instead). This happens even when images are <200kb, but it slows down the bubble database browser significantly and I notice the files are still stored, even with a base64 version - thus doubling records?

Hi @manipaje

Can you tell me how you’re uploading the files to S3?
Are you using one of the Insert > Image/Media menu items or pasting an image (or other file type) directly into the editor? Also, what is the file extension you’re seeing this happen with and if you’re selecting a file locally in order to upload, is it coming directly from your computer?

What browser are you using too? and the device. I’ll test all scenarios because this could be for a number of reasons.

Paul

Hey Paul, thanks for the reply. I’m just using the Insert → Image/Media option (for now). I’ve tried it with .png .gif or .jpg and can get the same result. I’ve noticed that the Insert/Edit Image dialogue box is converting URLs into the following format:

blob:https://myapp.com/<hex code>

The <hex-code> format is, in Hex characters: 8-4-4-4-12 (with hyphens).

This is unlike the format I’d expect of:

https://myapp.com/version-test/fileupload/<fbubblecode>/<filename>)

where <fbubblecode> is f13x18 chars and <filename> is as expected.

I can’t tell if this is 100% it, but it seems to lean towards a blob when you use the Source picker from the General tab vs the Browse for an image picker/dropper in the Upload tab.

This is all via Chrome MacOS but I’d be delighted to check other browsers if this helps.

Cool, thanks for the info, let me run some tests. One thing I did notice was that the insert/media option should only be used for video files, not for any images. That may explain half of it.

1 Like

@pork1977gm appreciate it’s been the holiday season but wanted to ask if you’d made any progress with this blog/file storage issue?