Copy/Paste Stripping Characters in Agent Workspace
We are seeing some strange behavior around copy/pasting code over the last month on Agent Workspace. Is anyone else seeing the following behaviors?
Content wrapped in angled brackets not preserved
This text when copied...
curl --cacert <path-to-your-cacert>
when pasted shows as:
curl --cacert
Indentation not preserved
This text when copied...
bar: |
this is not a normal string it
spans more than
one line
see?
when pasted shows as:
bar: |
this is not a normal string it
spans more than
one line
see?
I've also tried to get around this with an app writing using the various options in the Zendesk App Framework.
Adding the following comment using ZAF I get the following results:
curl --cacert <path-to-your-cacert>
bar: |
this is not a normal string it
spans more than
one line
see?
Sample code looks for each invoke action looks like this:
append = () => {
let comment=document.getElementById("pending_comment").value;
client.invoke({ "comment.appendMarkdown": [comment], "app.close": [] });
};
- Using comment.appendText loses indention and line breaks.
curl --cacert <path-to-your-cacert> bar: | this is not a normal string it spans more than one line see?
- Using comment.appendHTML loses angled bracket content, line breaks, and indention
- Using ticket.editor.insert loses angled bracket content, line breaks, and indention
curl --cacert bar: | this is not a normal string it spans more than one line see?
- Using comment.appendMarkdown results in loss of indentation. This is the closest one to being right.
curl --cacert <path-to-your-cacert>
bar: |
this is not a normal string it
spans more than
one line
see?
-
Definitely a bug!
-
Yes, this is a big pain! Is this a new bug? We just migrated to Agent Workspace and it's causing so many headaches.
-
We're also seeing that sometimes when a string is copied, it doesn't paste the full string - it'll cut off at, in this case, the ampersand. This happens whether using paste as plain text or not.
The copied text:
The pasted text:
-
Hello All,
Thanks for providing feedback. Checking in!
Is this still an issue you're facing? Thanks!
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
5 Kommentare