Forum Academy Marketplace Showcase Pricing Features

Is it possible to extend a plugin and access its elements?

Hey, newbie question here.

I would like to add some custom functionality to Bubble’s Rich Text Editor plugin.
By creating a new plugin.

I would need to access the contents of the text input, but have no idea how.

Is this possible at all?

— What i’m trying: setting/appending text to the editor contents —

// Get the element - this works
var rich_text_input = document.getElementById(instance.data.element_id);

// doesn't work - can't access the QuillJS function as such
rich_text_input.setContents(properties.text_to_append); 

// doesn't work - this replaces the entire html of the editor including toolbar
rich_text_input.innerHTML = properties.text_to_append;