Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get image innerHTML #45

Open
baroninn opened this issue Feb 4, 2019 · 0 comments
Open

get image innerHTML #45

baroninn opened this issue Feb 4, 2019 · 0 comments

Comments

@baroninn
Copy link

baroninn commented Feb 4, 2019

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant