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

Pastes "color": "transparent" when copying. #1093

Closed
abvas opened this issue Sep 22, 2022 · 4 comments
Closed

Pastes "color": "transparent" when copying. #1093

abvas opened this issue Sep 22, 2022 · 4 comments
Labels
Milestone

Comments

@abvas
Copy link

abvas commented Sep 22, 2022

Describe the bug
I don't know which section to post this in. Perhaps this is a bug.

I have this style in my styles:

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, textarea, button {

    -webkit-tap-highlight-color: transparent;
}

I can't remove this as I'm using the "Bubble" website building platform. And I have no way to change it.

After changing the font or font size, when copying text (more than one line) - the text is copied with "color": "transparent"
Of course and inserted with "color": "transparent" too.

This is happening precisely because of "-webkit-tap-highlight-color: transparent;"
If I first disable this setting via devTools and then copy and paste the text, everything works fine and the desired "color" is pasted, not "transparent".
It turns out that when changing the font or font size, <span> is added (for example, <span style="font-family: Impact;">123</span>) and if "color" is not clearly spelled out in it, then "color" why -something is taken from "-webkit-tap-highlight-color: transparent;"

To Reproduce
Steps to reproduce the behavior:
0. It is in the styles:

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, textarea, button {

    -webkit-tap-highlight-color: transparent;
}
  1. The editor is loaded
  2. Change the font (for example, to Impact)
  3. Write two lines of text
    for example:
123
456
  1. Copy these two lines
  2. And paste them below

Expected behavior
We expect to receive:

123
456
123
456

but we get:

123
456



Screenshots
Image 121

Image 122

Image 123

-webkit-tap-highlight-color: transparent; = on
Image 126

-webkit-tap-highlight-color: transparent; = off
Image 125

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [chrome]
  • Version [104.0.5112.81 (64)]
  • suneditor@2.44.0

Additional context
If this is not a bug, then please tell me if I can do something about it myself somehow fix it?
Thanks a lot.

@JiHong88
Copy link
Owner

This issue is not reproduced.
My windows is 8, Does this have anything to do with it?

@JiHong88 JiHong88 added the hold When the issue does not reproduce label Sep 23, 2022
@abvas
Copy link
Author

abvas commented Sep 23, 2022

Here is a small demo:
https://codepen.io/abvas/pen/ExLwOMp

Pay attention to CSS
Image 131

  1. Change the font
  2. Print two lines
  3. Copy these two lines
  4. Paste what you copied below

@JiHong88 JiHong88 added bug and removed hold When the issue does not reproduce labels Sep 24, 2022
@JiHong88 JiHong88 added this to the 2.44.1 milestone Sep 24, 2022
@JiHong88
Copy link
Owner

The 2.44.1 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@abvas
Copy link
Author

abvas commented Sep 25, 2022

Excellent! That helped.
Thanks a lot!

You are the best!

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

No branches or pull requests

2 participants