Version: AwesomeBB.
So, I created my own div, added image in it and now I made a script as well to trigger onClick event. HTML:
JS code:
For unknown reason to me, this doesn't work. Nothing happens.
So, I created my own div, added image in it and now I made a script as well to trigger onClick event. HTML:
- Code:
<div id="personal_social">
<img src="https://i.ibb.co/fHQdty7/317731-pinterest-social-social-media-icon-20x20.png" title="Pinterest" id="pinterest_img" />
</div>
JS code:
- Code:
let pinterest_image = document.getElementById("pinterest_img");
pinterest_image.addEventListener("click", function() {
let textarea = document.getElementById("text_editor_textarea");
textarea.value += "test";
});
For unknown reason to me, this doesn't work. Nothing happens.
Last edited by System32 on November 9th 2022, 11:21 pm; edited 1 time in total