Recent searches


No recent searches

How do I control comments scrolling?



Posted Jun 19, 2023

Hello, We have our own button to type notes, and when I type notes, the scroll is at the top, so if the notes are long, I'd like to lower them to the bottom. Currently, scrolling is at the top, blocking some comments.

We're typing notes with the code below, what should we add to scroll down to the bottom when typing?

let comment = "comment";
client.set('comment.text', comment);
 
I tried to access the id, class name of comments with js as below, but it was not successful.
let zendeskTextbox = document.getElementsByClassName('ck-content');
zendeskTextbox.scrollTop = zendeskTextbox.scrollHeight;
 
I look forward to hearing from you. Thank you.

0

4

4 comments

Hello,

I'm sorry, but thanks for letting me know.

Thanks for your answer.

0


Hey VOC_운영,

Sorry for the delay ion getting back to you, and thanks for the detailed explanation!



Unfortunately, it isn’t currently possible to programmatically scroll the editor directly using ZAF methods. Likewise, due to our CORS policy it isn’t possible to manipulate DOM elements from the app iframe. 



I can absolutely see the benefit of having such a function though so I’d encourage you to create a post in our feedback pages so our product team will have the opportunity to take a look at the use case. Here’s a link to our feedback guidelines which will help get you started.
 
Sorry I couldn’t be more help! If you have any questions, let me know.
 
Tipene

1


Hi! thanks for the answer.

Unfortunately, due to our company policy, images cannot be uploaded, so I hope you understand with the picture below.

┌────┐
│memo ↑│
│memo ││
│memo ││
│memo ││
│............ ││
└────┘

Now, if you enter a memo through the button we developed as shown in the picture above, the scroll is at the top and the bottom content is cut off.

┌────┐
│.............││
│memo ││
│memo ││
│memo ││
│memo ↓│
└────┘

However, when a memo is entered, I want the scroll to go to the bottom and the last line memo to be seen.

 

So I thought I could edit it using html tags like the body, but it didn't work out. 

(I tried using a selector, and I also tried inserting a tag into a memo, but it failed.)

I wonder if this is something I can edit, and if I can, I'd appreciate it if you could tell me how.

 

Thank you.

VOC_운영

 

1


Hi VOC_운영,

Thanks for reaching out!

Would you mind sharing a screenshot of the problem you're encountering? I'd just like to get a better idea of the problem before we start looking in to solutions.

Thanks!

Tipene

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post