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);
let zendeskTextbox = document.getElementsByClassName('ck-content');
zendeskTextbox.scrollTop = zendeskTextbox.scrollHeight;
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