# Best way to paste styled text and images into Discourse composer

**URL:** https://meta.discourse.org/t/best-way-to-paste-styled-text-and-images-into-discourse-composer/263725
**Category:** Support
**Created:** [May 3, 2023, 7:29pm UTC](https://meta.discourse.org/t/best-way-to-paste-styled-text-and-images-into-discourse-composer/263725 "2023-05-03T19:29:19Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 5, 2023, 2:23pm UTC](https://meta.discourse.org/t/best-way-to-paste-styled-text-and-images-into-discourse-composer/263725/2 "2023-05-05T14:23:45Z")

</div>

Hello Adam 👋

> [@adamengst](#):
>
> so my question is if there’s any way for Discourse to accept a combination of text and images all at once

If you’re specifically talking about Google Docs, it’s not possible to our knowledge since their change:

> [@Issue on posting: Can't copy images from Google Docs](https://meta.discourse.org/t/issue-on-posting-cant-copy-images-from-google-docs/263184/3):
>
> Hey Ayelen! I’ve seen this recently as well and unfortunately you won’t be able to copy/paste images from a Google Doc into your community. It looks to be a security feature that Google has implemented. Zapier has an [article](https://zapier.com/blog/why-cant-you-copy-and-paste-in-google-docs/) that dives into this a bit. You should still be able to copy/paste from other sources like Pages, Microsoft Word, Pinterest, etc.

I don’t know if it would be possible for Discourse to be able to paste Base64 images as regular images in a post. That could be worth a post on #Contribute > Feature I guess.

As a practical example, if we have a Google Doc ([Test Discourse base64 image - Google Docs](https://docs.google.com/document/d/1gIjLbQPZXZTvTnbtru6tmjUrysPrgcu4TurY996_5os/edit?usp=sharing)) and we copy all of it, here’s the Windows 11 clipboard content according to Clipview ([Windows clipboard raw viewer](http://www.peterbuettner.de/develop/tools/clipview/))

```html
Version:0.9
StartHTML:0000000105
EndHTML:0000001659
StartFragment:0000000141
EndFragment:0000001623
<html>
  <body>
    <!--StartFragment-->
    <meta charset="utf-8">
    <b style="font-weight:normal;" id="docs-internal-guid-86b76b06-7fff-94b7-4ff6-2d981c2951e9">
      <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;">
        <span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">test</span>
      </p>
      <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;">
        <span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">
          <span style="border:none;display:inline-block;overflow:hidden;width:10px;height:10px;">
            <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAExJREFUKFNj/M/A8J+BCMAIU8j4Abvq/wIQcbBCkCKQALpimBiYhikE6UJWjMFGVghTDLYKySkYJhKtkCirifIMupuQAwoleIgIbwYADG839985eBAAAAAASUVORK5CYII=" width="10" height="10" style="margin-left:0px;margin-top:0px;" />
          </span>
        </span>
      </p>
      <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;">
        <span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">img</span>
      </p>
    </b>
    <br class="Apple-interchange-newline">
    <!--EndFragment-->
  </body>
</html>

```

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-paste-styled-text-and-images-into-discourse-composer/263725)._
