Good morning companions. A huge doubt. There is a possibility that when you press an image this me of its <img src= "">
I say it because I am implementing an editor with ckeditor but I want that when pressing the image it is put in the editor.
One thing I could do is to use a button, but in doing so I grab the image of an address from my folder, what I want is that when I click on the image, I take its <img src="">
and then do the put in the editor.
Annex code:
<script>
$(document).ready(function(){
$('button').click(function(){
img = "<img src='usuario.png'/>'";
CKEDITOR.instances.mi_textarea.insertHtml(img);
});
});
</script>
<button>Insertar</button>
<textarea class="ckeditor" name="mi_textarea" id="mi_textarea"></textarea>
Someone who can help me. I would appreciate it very much.