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

[Broken Website] SalesForce - *.lightning.force.com #12578

Open
2 tasks done
SleepyCatten opened this issue Apr 10, 2024 · 14 comments
Open
2 tasks done

[Broken Website] SalesForce - *.lightning.force.com #12578

SleepyCatten opened this issue Apr 10, 2024 · 14 comments

Comments

@SleepyCatten
Copy link

Prerequisites

  • I searched for any existing report about this website issue to avoid opening a duplicate.
  • I can reproduce this website issue in a new, unmodified web browser profile with Dark Reader installed as the only extension.

Website Issue Description

SalesForce (a commonly used CRM tool within the charity sector) plays mostly nicely with Dark Reader. However, when you go to send an email through it, the email section is not correctly handled using the Dynamic filter. If you toggle Dark Reader off/on for the site, or change from dark to light mode and back again, the email section is correctly handled.

Website Address

*.lightning.force.com

Steps To Reproduce

  1. Use Dark Reader with SalesForce.
  2. Use the email function within SalesForce to start composing an email.
  3. The text will show as black on a dark background at first.
  4. Either toggle Dark Reader off/on or toggle the mode to light then back to dark.
  5. The text will then show as white against the dark background.

Screenshots

Capture1
Capture2

Operating System

Windows 10 64-bit

Web Browser name and version

Chrome Version 123.0.6312.106 (Official Build) (64-bit)

Dark Reader version

4.9.82

Additional Context

A minor issue, but might be that Dark Reader is not detecting the email functionality on the page when a user clicks on this, but then does detect it if turned off/on with this open.

@maximus20895
Copy link

Still have this issue.

No idea how to fix it :(

@alexanderby
Copy link
Member

@maximus20895 @SleepyCatten I tried using Salesforce, but unfortunately this email function requires lots of setup. Could you please try using Dark Reader's Dev Tools to fix this?

Or at least could you please go to that page, press F12, click arrow icon in the top-left corner and then click that email block? I want to see that markup, it probably includes <iframe> element.

@maximus20895
Copy link

Hello,

I'm sure it's an iframe, but I really dont know much. I am using Firefox/Floorp if that matters.

When I select the text box, I can then right click the inspector box what do i copy?

Do I copy HTML outer, HTML inner, ect?

thanks!

Also,

the comment tab works fine, for some reason, it's just this email section.

Thanks again so much for helping.

Here is the outer HTML whatever that means from that selection:

`<title data-cke-title=""></title><style data-cke-temp="1">html{height:100% !important}
img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}
html{cursor:text;*cursor:auto}
img,input,textarea{cursor:default}</style><style class="darkreader darkreader--sync" media="screen"></style><style data-cke-temp="1">.cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}
.cke_editable form{border: 1px dotted #FF0000;padding: 2px;}

img.cke_hidden{background-image: url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/forms/images/hiddenfield.gif?t=4.18.0.11);background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}
img.cke_iframe{background-image: url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/iframe/images/placeholder.png?t=4.18.0.11);background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}
.cke_contents_ltr a.cke_anchor,.cke_contents_ltr a.cke_anchor_empty,.cke_editable.cke_contents_ltr a[name],.cke_editable.cke_contents_ltr a[data-cke-saved-name]{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat left center;border:1px dotted #00f;background-size:16px;padding-left:18px;cursor:auto;}.cke_contents_ltr img.cke_anchor{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat left center;border:1px dotted #00f;background-size:16px;width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}.cke_contents_rtl a.cke_anchor,.cke_contents_rtl a.cke_anchor_empty,.cke_editable.cke_contents_rtl a[name],.cke_editable.cke_contents_rtl a[data-cke-saved-name]{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat right center;border:1px dotted #00f;background-size:16px;padding-right:18px;cursor:auto;}.cke_contents_rtl img.cke_anchor{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat right center;border:1px dotted #00f;background-size:16px;width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}
div.cke_pagebreak{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/pagebreak/images/pagebreak.gif?t=4.18.0.11) no-repeat center center !important;clear:both !important;width:100% !important;border-top:#999 1px dotted !important;border-bottom:#999 1px dotted !important;padding:0 !important;height:7px !important;cursor:default !important;}
.cke_show_blocks h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks p:not([contenteditable=false]):not(.cke_show_blocks_off){background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}.cke_show_blocks h6:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h6.png?t=4.18.0.11)}.cke_show_blocks h5:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h5.png?t=4.18.0.11)}.cke_show_blocks h4:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h4.png?t=4.18.0.11)}.cke_show_blocks h3:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h3.png?t=4.18.0.11)}.cke_show_blocks h2:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h2.png?t=4.18.0.11)}.cke_show_blocks h1:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h1.png?t=4.18.0.11)}.cke_show_blocks blockquote:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_blockquote.png?t=4.18.0.11)}.cke_show_blocks address:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_address.png?t=4.18.0.11)}.cke_show_blocks pre:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_pre.png?t=4.18.0.11)}.cke_show_blocks div:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_div.png?t=4.18.0.11)}.cke_show_blocks p:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_p.png?t=4.18.0.11)}.cke_show_blocks.cke_contents_ltr h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr p:not([contenteditable=false]):not(.cke_show_blocks_off){background-position:top left;padding-left:8px}.cke_show_blocks.cke_contents_rtl h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl p:not([contenteditable=false]):not(.cke_show_blocks_off){background-position:top right;padding-right:8px}
.cke_show_borders table.cke_show_border,.cke_show_borders table.cke_show_border > tr > td, .cke_show_borders table.cke_show_border > tr > th,.cke_show_borders table.cke_show_border > tbody > tr > td, .cke_show_borders table.cke_show_border > tbody > tr > th,.cke_show_borders table.cke_show_border > thead > tr > td, .cke_show_borders table.cke_show_border > thead > tr > th,.cke_show_borders table.cke_show_border > tfoot > tr > td, .cke_show_borders table.cke_show_border > tfoot > tr > th{border : #d3d3d3 1px dotted}
img::selection{color:rgba(0,0,0,0)}img.ckimgrsz{outline:1px dashed #000}#ckimgrsz{position:absolute;width:0;height:0;cursor:default;z-index:10001}#ckimgrsz span{display:none;position:absolute;top:0;left:0;width:0;height:0;background-size:100% 100%;opacity:.65;outline:1px dashed #000}#ckimgrsz i{position:absolute;display:block;width:5px;height:5px;background:#fff;border:1px solid #000}#ckimgrsz i.active,#ckimgrsz i:hover{background:#000}#ckimgrsz i.br,#ckimgrsz i.tl{cursor:nwse-resize}#ckimgrsz i.bm,#ckimgrsz i.tm{cursor:ns-resize}#ckimgrsz i.bl,#ckimgrsz i.tr{cursor:nesw-resize}#ckimgrsz i.lm,#ckimgrsz i.rm{cursor:ew-resize}body.dragging-br,body.dragging-br *,body.dragging-tl,body.dragging-tl *{cursor:nwse-resize!important}body.dragging-bm,body.dragging-bm *,body.dragging-tm,body.dragging-tm *{cursor:ns-resize!important}body.dragging-bl,body.dragging-bl *,body.dragging-tr,body.dragging-tr *{cursor:nesw-resize!important}body.dragging-lm,body.dragging-lm *,body.dragging-rm,body.dragging-rm *{cursor:ew-resize!important}</style><style class="darkreader darkreader--sync" media="screen"></style>rr
`

@alexanderby
Copy link
Member

alexanderby commented Apr 25, 2024

@maximus20895 Thanks for trying! I expect to see something like this:
Screenshot 2024-04-25 at 17 59 45

It is also important to expand iframe's head and see if there is darkreader-lock (devs could put it there):
Screenshot 2024-04-25 at 18 02 02

@maximus20895
Copy link

OH, okay, let me do that!

here is what is says for the iframe:

<iframe src="" style="width: 100%; height: 100%;" class="cke_wysiwyg_frame cke_reset" title="Email Body" aria-describedby="cke_48" tabindex="0" allowtransparency="true" frameborder="0"></iframe>

Screenshots:

iframe
iframetext

Thanks so much!

@alexanderby
Copy link
Member

Thanks, could you please expand that <head> inside the <iframe>?

@maximus20895
Copy link

Yes, I figured as much as was just about to upload it. I'm a failure!!!

Screenshot 2024-04-25 101437

@alexanderby
Copy link
Member

Is Dark Reader enabled there?

@maximus20895
Copy link

Here is there 2nd <style> since the text is so large:

<style data-cke-temp="1">.cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default} .cke_editable form{border: 1px dotted #FF0000;padding: 2px;} img.cke_hidden{background-image: url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/forms/images/hiddenfield.gif?t=4.18.0.11);background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;} img.cke_iframe{background-image: url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/iframe/images/placeholder.png?t=4.18.0.11);background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;} .cke_contents_ltr a.cke_anchor,.cke_contents_ltr a.cke_anchor_empty,.cke_editable.cke_contents_ltr a[name],.cke_editable.cke_contents_ltr a[data-cke-saved-name]{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat left center;border:1px dotted #00f;background-size:16px;padding-left:18px;cursor:auto;}.cke_contents_ltr img.cke_anchor{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat left center;border:1px dotted #00f;background-size:16px;width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}.cke_contents_rtl a.cke_anchor,.cke_contents_rtl a.cke_anchor_empty,.cke_editable.cke_contents_rtl a[name],.cke_editable.cke_contents_rtl a[data-cke-saved-name]{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat right center;border:1px dotted #00f;background-size:16px;padding-right:18px;cursor:auto;}.cke_contents_rtl img.cke_anchor{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/link/images/anchor.png?t=4.18.0.11) no-repeat right center;border:1px dotted #00f;background-size:16px;width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;} div.cke_pagebreak{background:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/pagebreak/images/pagebreak.gif?t=4.18.0.11) no-repeat center center !important;clear:both !important;width:100% !important;border-top:#999 1px dotted !important;border-bottom:#999 1px dotted !important;padding:0 !important;height:7px !important;cursor:default !important;} .cke_show_blocks h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks p:not([contenteditable=false]):not(.cke_show_blocks_off){background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}.cke_show_blocks h6:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h6.png?t=4.18.0.11)}.cke_show_blocks h5:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h5.png?t=4.18.0.11)}.cke_show_blocks h4:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h4.png?t=4.18.0.11)}.cke_show_blocks h3:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h3.png?t=4.18.0.11)}.cke_show_blocks h2:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h2.png?t=4.18.0.11)}.cke_show_blocks h1:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_h1.png?t=4.18.0.11)}.cke_show_blocks blockquote:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_blockquote.png?t=4.18.0.11)}.cke_show_blocks address:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_address.png?t=4.18.0.11)}.cke_show_blocks pre:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_pre.png?t=4.18.0.11)}.cke_show_blocks div:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_div.png?t=4.18.0.11)}.cke_show_blocks p:not([contenteditable=false]):not(.cke_show_blocks_off){background-image:url(https://cvet.lightning.force.com/ckeditor/ckeditor-4.x/rel/plugins/showblocks/images/block_p.png?t=4.18.0.11)}.cke_show_blocks.cke_contents_ltr h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_ltr p:not([contenteditable=false]):not(.cke_show_blocks_off){background-position:top left;padding-left:8px}.cke_show_blocks.cke_contents_rtl h6:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h5:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h4:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h3:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h2:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl h1:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl blockquote:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl address:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl pre:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl div:not([contenteditable=false]):not(.cke_show_blocks_off),.cke_show_blocks.cke_contents_rtl p:not([contenteditable=false]):not(.cke_show_blocks_off){background-position:top right;padding-right:8px} .cke_show_borders table.cke_show_border,.cke_show_borders table.cke_show_border > tr > td, .cke_show_borders table.cke_show_border > tr > th,.cke_show_borders table.cke_show_border > tbody > tr > td, .cke_show_borders table.cke_show_border > tbody > tr > th,.cke_show_borders table.cke_show_border > thead > tr > td, .cke_show_borders table.cke_show_border > thead > tr > th,.cke_show_borders table.cke_show_border > tfoot > tr > td, .cke_show_borders table.cke_show_border > tfoot > tr > th{border : #d3d3d3 1px dotted} img::selection{color:rgba(0,0,0,0)}img.ckimgrsz{outline:1px dashed #000}#ckimgrsz{position:absolute;width:0;height:0;cursor:default;z-index:10001}#ckimgrsz span{display:none;position:absolute;top:0;left:0;width:0;height:0;background-size:100% 100%;opacity:.65;outline:1px dashed #000}#ckimgrsz i{position:absolute;display:block;width:5px;height:5px;background:#fff;border:1px solid #000}#ckimgrsz i.active,#ckimgrsz i:hover{background:#000}#ckimgrsz i.br,#ckimgrsz i.tl{cursor:nwse-resize}#ckimgrsz i.bm,#ckimgrsz i.tm{cursor:ns-resize}#ckimgrsz i.bl,#ckimgrsz i.tr{cursor:nesw-resize}#ckimgrsz i.lm,#ckimgrsz i.rm{cursor:ew-resize}body.dragging-br,body.dragging-br *,body.dragging-tl,body.dragging-tl *{cursor:nwse-resize!important}body.dragging-bm,body.dragging-bm *,body.dragging-tm,body.dragging-tm *{cursor:ns-resize!important}body.dragging-bl,body.dragging-bl *,body.dragging-tr,body.dragging-tr *{cursor:nesw-resize!important}body.dragging-lm,body.dragging-lm *,body.dragging-rm,body.dragging-rm *{cursor:ew-resize!important}</style>

@maximus20895
Copy link

Yes, the pictures ect are that I posted were taken when Darkreader was on.

@alexanderby
Copy link
Member

alexanderby commented Apr 25, 2024

  1. Click "Dev Tools" in the bottom-right corner:
Screenshot 2024-04-25 at 18 40 53
  1. Press Ctrl+F or Command+F and type "lightning.force.com":
Screenshot 2024-04-25 at 18 42 20
  1. You will see INVERT and CSS sections. If you put .cke_wysiwyg_frame under INVERT it should invert the whole frame. CSS is for custom CSS text if you are familiar with it.

  2. Click "Apply". Hopefully it will work.

@maximus20895
Copy link

Hah!

It inverted the frame to white , but the text now is also inverted, so it's white. lol.

this gives me some ideas!!!

@alexanderby
Copy link
Member

Maybe adding:

CSS
.cke_wysiwyg_frame {
    background: white !important;
}

will help.

Unfortunately it's hard to give an advice without being able to see it myself. It's unclear why Dark Reader doesn't work in this Iframe. The Computed styles tab should give an idea where the background color of a particular element comes from:
Screenshot 2024-04-25 at 19 32 09

@maximus20895
Copy link

That works but I dont know how.

i'm guessing you said invert everything so everything is white, but then since the background was set to white, it also inverted back to "normal" which is dark?

Yay!!!

I guess it would work if you could just invert the text inside the iframe, but i don't know how to do that :(

thanks again though. Really helpful and i've learned alot!

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

No branches or pull requests

3 participants