DragonByte Tech
Well-known member
- Affected version
- 2.0.0 XF.com Edition
When I try to paste a block of code into the code editor (Insert -> Code), I get double line breaks. This does not happen on my local install (2.0.0 Gold).
How can I get that information to you?If it's specific to here, it might be Froala 2.7.2 related, as we've just updated to that.
Though if it's VSCode related, I'd need to know exactly how the HTML we receive is being formatted to make a determination.
Unfortunately direct pasting is not working, although I can confirm the code dialog works for me (latest Chrome, Win10).However, I have identified a workaround, so I believe this should be resolved both for the code dialog and when pasting. The code dialog I'm fairly certain of, but @DragonByte Tech, can you double check when pasting from VSCode directly? (Or any other scenario where you could repro it when pasting into the editor directly.) The latest code has been rolled out here.
As in, it's not working at all, or it hasn't fixed the issue?Unfortunately direct pasting is not working, although I can confirm the code dialog works for me (latest Chrome, Win10).
Oh sorry, I meant it hasn't fixed the issue.As in, it's not working at all, or it hasn't fixed the issue?
$config['development']['fullJs'] = true;
return XF.adjustHtmlForRte(content);
console.log(content);
return t.normalizePaste(content);
console.log(content);
First console log entry: https://pastebin.com/Wg8LTPLCCan you paste them here exactly as you see them?
I've voted on it on GitHubThere is a way we can workaround it, but it requires a change/bug fix in Froala. I have made a request for this, but it is arguably an enhancement or there may be reasons not to do it, so it may not be applied. I will tag this as a service issue though l will leave it open pending a resolution on their end.
Arguably not -- I have reproduced it in the past if I'm very quick, but if I delay a bit, so it may be more tied to the speed in which certain events happen.Should I open a separate thread for the issue described in posts #8 and #9?
I can reproduce it if I wait less than approx. 1 second. Tested it a few times with the stopwatch on my phone.Arguably not -- I have reproduced it in the past if I'm very quick, but if I delay a bit, so it may be more tied to the speed in which certain events happen.
The relevant changes for this are included in the upcoming XF 2.0.2 and have been rolled out here if you'd like to test. Thank you.There is a way we can workaround it, but it requires a change/bug fix in Froala. I have made a request for this, but it is arguably an enhancement or there may be reasons not to do it, so it may not be applied. I will tag this as a service issue though l will leave it open pending a resolution on their end.
We use essential cookies to make this site work, and optional cookies to enhance your experience.