Hello, im trying to create a new thing from the TINY editor that i have pasted the API code inside of a HTML element.
I have no idea how to create a new thing of the text i wrote in that box?
This is what i pasted in the HTML element, and the text editor is visable on the page:
<!-- Place the first <script> tag in your HTML's <head> -->
<script src="https://cdn.tiny.cloud/1/API-CODE/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<!-- Place the following <script> and <textarea> tags your HTML's <body> -->
<script>
tinymce.init({
selector: 'textarea',
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount linkchecker',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table | align lineheight | numlist bullist indent outdent | emoticons charmap | removeformat',
});
</script>
<textarea>
Welcome to TinyMCE!
</textarea>
If you don’t use JS toolbox or build a plugin, this is not possible. (It could be possible if you do a change into a Bubble native input, at this moment, you could use input field has changed trigger)
There’s already a lot of topic about how to use toolbox plugin.
I don’t think there’s any tutorial but you can probably search google (or ask chatGPT) to find JS script to update an input using ID (in Bubble, you need to set Attribute ID, that need to be activated in settings)