# Incorrect text formatting copied

**URL:** https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060
**Category:** Help
**Created:** [October 20, 2022, 9:57am UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060 "2022-10-20T09:57:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![noty](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@noty](https://forums.ankiweb.net/u/noty)
#### Post date: [October 20, 2022, 9:57am UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/1 "2022-10-20T09:57:23Z")

</div>

I have formatted text.  
In HTML it is like this:

```auto
<div><b><span style=" background-color: rgb(126, 159, 195);">&nbsp; hello olerd</span></b></div>

```

But if I copy it from the ANKI editor, it doesn’t copy the whole design and it comes out like this:

```auto
<b>&nbsp; hello olerd</b>

```

In the past it wasn’t like that for me.

What is the reason for this, and how should it be solved?

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/81a1eeb48bd4b4a9a682face1ce4666b172acef1.png)

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [October 20, 2022, 12:51pm UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/2 "2022-10-20T12:51:05Z")

</div>

If I recall correctly, the background color is stripped when pasting between fields, because the red background of a duplicate field was getting copied when it shouldn’t have been.

---

<div class="post-metadata">

### Author: ![noty](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@noty](https://forums.ankiweb.net/u/noty)
#### Post date: [October 20, 2022, 3:41pm UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/3 "2022-10-20T15:41:26Z")

</div>

The question of whether there is a way to solve it because it is necessary for me.

> [@dae](#):
>
> because the red background of a duplicate field was getting copied when it shouldn’t have been.

Today a double field uses red background ???

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [October 23, 2022, 11:26pm UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/4 "2022-10-23T23:26:37Z")

</div>

Yes, the change in the way it’s shown in .55 may make preserving the background possible again. I’ll give it a try in the next beta.

---

<div class="post-metadata">

### Author: ![noty](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@noty](https://forums.ankiweb.net/u/noty)
#### Post date: [October 29, 2022, 6:52pm UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/5 "2022-10-29T18:52:40Z")

</div>

> [@dae](#):
>
> I’ll give it a try in the next beta.

Thank you very much for the correction.

Works properly

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)
#### Post date: [November 28, 2022, 6:53pm UTC](https://forums.ankiweb.net/t/incorrect-text-formatting-copied/24060/6 "2022-11-28T18:53:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
