-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.10 RC1 Wrong Cursor Postioning while edititing Ticket Answer #2322
Comments
Could you submit a screenshot? I'm not sure how to produce the issue |
@greezybacon How to make screenshots of a jumping Cursor? If you write an answer to a ticket and you think a little bit about what you are writing, save draft is shown every second if you write again also a green progress bar is shown at top. If you try to delete the last signs with backspace the cursor is jumping randomly in the text area und if you type a new word ist anywhere in text, not at the end. Also if you use backspace, it seem like the edit area lost focus and browser wants to go back. The "you lost your input" popup pops up. |
It seems like if you hit backspace at the moment when "Save Draft" is shown Focus is at "Save draft" and not at edit area. Browser interpreting the backspace key as browser navigation and shows the "You lost changes when leaving page". After going back with Cancel Cursor is elsewhere at edit area. If you use Delete Key after this is happen Cursor jumps randomly to beginn of a row. |
I am unable to replicate the behavior that you are describing. |
@ntozier I use IE11, latest Firefox and Chrome to test it. Our staff at Switzerland test it on different PCs with Firefox and Chrome. We use also a clean install to test. Same Error. Sometimes it is functional for a few Minutes and then the error occurs again. |
I'll continue to try to reproduce it then. But so far nothing... |
I have an idea. Change your language pack to English for your account and see if you can replicate the behavior please. Also do you ever get the "lock expiring soon" message? |
@ntozier The clean install is pure English without German de.phar. Error is the same. You should try to open the ticket at two Browsers. One to edit it and one to show it. |
and the lock message? |
It seems to me that opening the same ticket in two separate browsers would do weird things because of the ticket lock. So I'm not sure why you would do that. |
Hmm, our Support Team is sitting in different locations. You can not know who opens the ticket at same time. I think the locking mechanism is for those cases. |
I think I found it. Could you try this patch? diff --git a/js/redactor-osticket.js b/js/redactor-osticket.js
index 7b93ebe..769e27a 100644
--- a/js/redactor-osticket.js
+++ b/js/redactor-osticket.js
@@ -40,6 +40,14 @@ RedactorPlugins.draft = function() {
this.opts.imageUpload = this.opts.autoCreateUrl + '/attach';
this.opts.imageUploadCallback = this.afterUpdateDraft;
}
+
+ // FIXME: Monkey patch Redactor's autosave enable method to disable first
+ var oldAse = this.autosave.enable;
+ this.autosave.enable = function() {
+ this.autosave.disable();
+ oldAse.call(this);
+ }.bind(this);
+
if (autosave_url)
this.autosave.enable();
It looks like the new version of Redactor has a bug and is registering the draft save system multiple times. I've raised the issue upstream |
@greezybacon |
The cursor just was between to rows. One half at top row other half in row below. Seems like something is working in Background and cursor position is not saved and restored correctly. |
We get the same isssue if your writing fast and making changes to previously written text it messes up the cursor positioning. Each time it auto saves the draft to cursor moves to the start of the editor. I'd prefer if there was a button to save the draft manually and disable this auto save behaviour. |
Also, there should be an option to delete draft.... |
Also, if you beginn to edit an answer and you scroll up to read the old messages the continuous auto scroll down is annoying ! |
The trashcan on the toolbar is for deleting the draft.... |
That's really strange. It should only scroll down when you first view the ticket, not a while later after starting to compose a response |
The trash can I have always overlooked. It's time for glasses now.. ;-( |
Is there a way to disable to drafts? |
Hello, We are facing the exact same issue. Thank you! |
This is really really very annoying and makes the whole system almost unusable. we had a solution (install Firefox RST 35 (or similar) where the problem does not occur, but now i know, that the customers have the same problems, and so this is not a solution anymore. it would be really great if this bug could be fixed by replacing the WYSIWYG-Editor through another well-working one. |
Since upgrading to the latest from github, I've not had any issues. |
howdu: what version have you installed? we are on v1.10 (901e5ea) |
I'm interested in a solution too. We're running the same version as comfine (1.10 901e5ea) and still having issues, even after disabling the draft by commenting a line in redactor.js as suggested on the forums. |
I'm having the same issue using the latest GitHub version. Has anyone found a solution? |
Hi, |
@PeopleInside Thanks. I'll check whether this fixes the issue. |
@PeopleInside is the fix the combination from uprading to Redactor 10.2.2. to 10.2.5 and adding the line in your comment #2373? Or do we only have to upgrade? |
I have replaced all Redactor content and works. Just followed the comment I mentioned to you. |
Ah at first I got a blanked out screen, could see the content but was only accessible after a browser refresh. |
BlackTiger63, PeopleInside, as we commented in your post, this will not fix the issue. |
@comfine for me has helped. |
@PeopleInside with which browser? i am pretty sure, that it will not solve it within the newest firefox version! ...only the old 35.x (or something similar - i forgot...) RST-Release works well....and other Browsers maybe - but we cannot tell our customers which browser they have to use... PS: i reloaded the ostickets-backend now by pressing STRG+F5 - maybe the old JS-File was still in the cache and maybe this caused the issue - i will report back.... |
so - problem still occurs! @PeopleInside: can you please tell me which OperatingSystem you use? |
I don't seem to have any problems anymore after what I answered before on March 24. |
@BlackTiger63 and @PeopleInside can you tell us which OS you use? this could really help to find out why we still have this issue! Sorry, BlackTiger63, you have CentOS as Client-System or Server-System? Important is the Client-OS, also the Browser you use! |
I'm sorry. My CentOs is server-system. Last week I also had that jumping cursor but aren't able to reproduce it either anymore. |
why are all these bugs simply closed? they are still persist and still annoying! |
@comfine are you still experiencing this in 1.14.1? This issue was close since it is 2015, reported on an end of life version, and had not been updated for over 2 years. Since then Redactor has been upgraded and draft behavior was changed. |
@ntozier: unfortunatelly, yes, we do still see this in 1.14.1! |
If you use backspace and delete while you write an answer to a ticket. Cursorposition changed while writing/deleting. I think it is the Save Draft popup.
The text was updated successfully, but these errors were encountered: