popline icon indicating copy to clipboard operation
popline copied to clipboard

get image innerHTML

Open baroninn opened this issue 6 years ago • 0 comments

sorry, this is not an issue. Just wondering how to get the the source code if the text contains an image.

I created a custom button in the social section like so:

    custom: {
      iconClass: "fa fa-comments",
      mode: "view",
      action: function(event) {
        $('#customformcontainer').removeClass('hide');
        $('#customtextarea').text($.popline.utils.selection().text()); 
      }
    }

Im returning the text inside a commentBox/contactForm ... Just experimenting with your awesome code :-) But if the text contains an image it is ignored.

Im wondering how can I return the html value like so: <img src="https://github.com/image.png">

oh, btw Great job on the code ! Looks really great !

baroninn avatar Feb 04 '19 22:02 baroninn