You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Rich Text Editor and Formatting Issues Pasting from Word

posted on April 3, 2024 Show version history

We have been chasing an issue in Forms when using the Rich Text Editor and pasting content from Word.

Is this a Word issue where it is providing something extra that Forms doesn't like or what in the world is going on here?

If this is a Word issue we cannot control, can it paste the way it will display after submission?

This is Forms 11 update 5, new forms designer, just a rich text editor field. The form submit to a user task and that is the step shown in the video.

Here is a video that demonstrates the issue.

 

Case 237844

 

1 0
replied on April 4, 2024

Word adds a ton of markup when you copy/paste from it, but for simple text like this I think there may be a better way of handling. I'll take a look

2 0
replied on April 16, 2024

We are also experiencing this issue and it is causing problems for us.  Would love to see this one resolved.

0 0
replied on August 7, 2024

Is there any update on this issue?  Is Laserfiche doing anything to address this problem?

0 0
replied on April 3, 2024 Show version history

That's definitely some weird behavior.  The fact that it happened with a normal paste versus a text-only paste (on the video, at the end when she did Ctrl+V versus Ctrl+Shift+V) does kind of make sense.

When you are doing a regular paste, it is attempting to retain all the formatting, converting all of Word's propritary formatting weirdness to the HTML formatting that LFForms uses.  When doing the Ctrl+Shift+V paste, then you are doing a "Paste as plain text" and it drops all the formatting and just pastes the text.

Something about how it is converting from Word's formatting to the HTML formatting is causing the behavior you are seeing.  I suspect it is a bug with how that Rich Text field handles pasting text that includes formatting, but I can't say for sure.  I know copying formatted text from Word to anywhere else is notoriously finicky.

I wonder if, weird as it sounds, Word is using a character in there that isn't actually a space, and so LFForms is struggling to maintain that value through paste and submission.

I would recommend using the Browser inspector to see if you can identify how the text looks at that deep browser HTML level after it is pasted into the field but before hitting the Save Draft button, and also after hitting the Save Draft button.  You could also examine how the field variable looks on the Monitor page.  Hopefully there is some indication what is going on in the spacing between those words.

Another idea would be to try to examine the text in an editor that can let you see more complex formatting.  I like Notepad++, and it has a bunch of add-ons you can include to do stuff like view the text as Hexidecimal (I had to do that once when Excel kept adding weird hidden characters to the start of a CSV file that was breaking an import process in another program, it wasn't until we pulled it into the Hex view in Notepad++ that we could even see there were extra characters there that never showed when viewed as normal text.

EDIT TO ADD: Actually, my suggestions don't really make a difference.  I went ahead and tried to replicate the behavior, and was able to do so, and I can't see anything about the particular spaces that explain why they are getting lost.  I can see that the text in the field displayed on screen does appear different after the paste before the submission versus after the submission.  But I don't have any explanation why.  It does seem like LFForms is doing something at the submission to clean up that text formatting to be saved, and the issue seems to be happening as part of that behavior.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.