[PLUGIN] - TinyMCE Advanced (v6)

Hi Keith! Thanks for that, really appreciate it!

Especially nice to hear that from you, since you’re such a respected member of the Bubble community! :grin:

1 Like

I like plugins that do stuff @pork1977gm!

1 Like

very Professional job

1 Like

Hi Paul!
I have the issue
image

Can you explain how I can use reset?

Have a nice day!
Thank you for attention!

Oh ok, that action is running too early, my bad!
How are you running it? what workflow does it live in. Basically the Tiny editor isn’t available at the time that action runs which is why you’re getting it. I will look at fixing that, but for the time being, you can probably just put a “pause action” before the reset editor action and it should be ok. Pause for 100ms

Let me know if that works.

I use the same tiny to create and edit objects
and when I want to edit or create a new object I need to clear editor

this error is no longer there, but now it is not downloaded the initial content of other objects, but the content of the last object, even though the initial content of another, I will try to reset in a few more places, maybe it will help

Paul, everything seems to work now, maybe it’s my mistake, which I described last, I’ll write later
thanks for the prompt response

It’s ok, thanks for letting us know, glad you sorted it. I’ll put a fix in for this later on today.

I have another question about downloading images, I correctly understand that the images that I download from the computer are temporary and need to insert a link from the database, for example, bubble?
Earlier I used other plugins that used JSON , which uploaded images and they stayed)

With images, you have a few choices. If you have this option set here to Yes…

image

And you then you upload an image from your local device to the editor using this option…

The plugin will then process the image, put it into the editor and then upload it to your bubble storage (note the image is not resized in the process, maybe I’ll add an option for that at some point) so it will show here:

If you were to later run the “Get content” action to return the HTML. The markup would look like this:

<p><img src="//s3.amazonaws.com/appforest_uf/f1677593085317x826976301449442400/Lenso_BG5_small.jpg" alt="" width="326" height="245"></p>

If you don’t have that Save to S3 option set to Yes, then it returns this instead:

<p><img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4R9......." alt="" width="326" height="245"></p>

The image comes back into the HTML as base64 data which means you can still save it in your database and if you were to ever use that same HTML to put it back into the editor, it will use the base64 data to comprise the image again. Note: The HTML will be rather large if you do this.

The other way of handling images is by directly copying and pasting from another source. For example, let’s say you find a nice picture somewhere on the web, you copy it to your clipboard and paste it directly into the editor. When that happens, all the above is still true and depending on what the Save to S3 value is will dictate how they’re processed.

You may want to read the descriptions on these options when doing that

image

Hope that helps.

1 Like

Paul, it’s amazing!
Thanks a lot!

1 Like

Paul, @pork1977gm I still do not clean the editor with reset.
It’s weird, first it worked, and now it’s happening again.
I have the initial content but it still displays the text/html content of the previous object

UPD: it will work if I refresh the page (!)
I’d like it to work without a page refresh… please If you can to fix it)

Don’t worry, I’ll fix it. Leave it with me for a bit. Increase that pause action if it’s set to 100ms to like 200ms or maybe more whilst waiting on me to push an update!

I’ve just pushed an update for you @sashawolfik3008 which should resolve your problem with the reset editor action. Try that and let me know how you get on with it.

Note: There are 2 default bubble actions, shown below which are not designed to work with resetting the data inside the editor. Don’t use these for that purpose.

image

The Reset editor action now has 2 options as shown below. Hopefully these make sense!

Regarding your HTML issue, I think you have an issue with the actual HTML. Something is going wrong somewhere which I can’t seem to replicate, so keep playing with it etc. If you’re still struggling with it after some time, let me know and we’ll figure out what to do next :slight_smile:

Best way to get the HTML is to use the Editor to create you’re content, then once you’re happy with it, run it through the Get Content action and that will populate the state called html content, to which you can save in your database then when you want to use it, just run it back through the Set Content action.

Hope that helps

Paul

1 Like

I also used “Set Content,” as Paul told me.

Thanks for the help, obviously, the person responsible for the plugin, that’s really good!

Hi,
thanks for the modification. I have to test it ! (I was off during 2 days).

I have a problem I can’t solve : I use TinyMEC Advanced. I put my text and then I have to click on a “Save button”.
My workflo is : “Get Content TiyMCEAdvancedInput” > “Create a new thing” ans in I have a field to save TinyMCE html content.

But, even if I add delay, It don’t save the last line of the input.

If I click on save a second time, it’s okay.

I tried many things but I can’t find any solution.

Use the “content is ready” event.

Triggered when the ‘Get content’ action has run, and the content is ready.

You can put your “Create a new thing” action inside it then it will always be executed after the Get content action has completed and the contents of the states will be populated.

1 Like

Thanks a lot.
Sometime discover Bubble plunges us into a new world.

And Custom format is working very well :smile: !

Congratulations for your work !

Excellent, glad it’s working well for you, and thanks! :slight_smile:
Any questions, feel free to ask.

One of these are wrong…you fix? :slightly_smiling_face:

  • content save successful
    Triggered when a save has been cancelled as a result of having the 'Save' plugin enabled.
  • content save cancelled
    Triggered when a save has been cancelled as a result of having the 'Save' plugin enabled.