Hi,
is there any way when using C or R shortcuts for the text box to gain focus so you can start typing immediately.
John
Hi,
is there any way when using C or R shortcuts for the text box to gain focus so you can start typing immediately.
John
Try this:
Create a local callback directory hierarchy using:
mkdir -p /opt/rt4/local/html/Callbacks/focusComments/Ticket/Update.html
In that directory create a file called AfterForm
(with that exactly that name - case is important!) with this content:
<script> jQuery(document).ready(function () { var waitCKEDITOR = setInterval(function() { if (window.CKEDITOR && window.CKEDITOR.instances && window.CKEDITOR.instances['UpdateContent']) { clearInterval(waitCKEDITOR); document.getElementsByClassName('cke_wysiwyg_frame')[0].contentWindow.document.getElementsByClassName('cke_editable')[0].focus(); } }, 1000); }); </script>
What this does is put a custom callback into the /Ticket/Update.html page after the form has been made that generates a bit of JavaScript for the browser. This JavaScript waits for the CKEditor object to be instantiated, and then fires a focus()
event at the included editor iframe.
You’ll need to tweak the path to the directory if your RT installation isn’t in /opt/rt4/
of course.