Invisible selected text for not focused editor?.. [message #1834959] |
Sun, 22 November 2020 13:08 |
jacky joy Messages: 2 Registered: October 2020 |
Junior Member |
|
|
Hello,
In Firefox browser, selected text is transparent when the editor does not have focus.
This is due to this code in textview.js
Code: [Select all] [Show/ hide]
if (isFirefox || isIE) {
if (this._selDiv1) {
var color = "transparent";
this._selDiv1.style.background = color;
this._selDiv2.style.background = color;
this._selDiv3.style.background = color;
if (window.getSelection) {
var sel = window.getSelection();
if (sel.rangeCount > 0) { sel.removeAllRanges(); }
}
}
}
This can cause problems. For instance lets say there is a search window available. When user is directed to this window, selected text would be invisible as the editor doesn't have focus!,...
Is there any work around for this?
https://creditcardsupportx.com
https://creditcardsupportx.com/barnes-and-noble-barclay-mastercard
https://creditcardsupportx.com/pep-boys-credit-card
P.S: I know that in Scratchpad even when the editor doesn't have focus selected text is visible. I couldn't figure out how they did this. Though, the Orion structure on Scratchpad is kind of different from original one (there is one extra FRAME element.
thanks
jackyjoy
[Updated on: Sun, 20 December 2020 15:13] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02424 seconds