Posts

How to get / maintain current cursor position in ck-editor 4?

Image
0 I am using the inline text Ck-editor and on every key-Up I need to validate the text (if the limit is exceeded) and if the user is not on the end of the text (maybe typing in between text), I need to remove the last word from the current instance of ck-editor Now the issue is, I have managed to remove the last word of the text and pushing it to another editor, but can't maintain the current position for the cursor. (after removing the last word, it jumps back to the first position.) Following is a snap of my code. var firstEditor = CKEDITOR.instances['inlineOne']; var selection = firstEditor.getSelection(); var bookmarks = selection.createBookmarks(true); var range = editor.createRange(); ... code to remove the last word "newTextVal" has the HTML after removeing last word....

Dart Timer Seemingly Doesn't Fire

Image
0 0 For some reason, the timer I made in Dart seems to not fire, as it doesn't change the screen contents. I had it working at one point, but it was gradually getting faster and faster for some reason (ticking more times per second, every second it ticked,) and I had to work on it. Here's a link to the main.dart file. Can anyone explain what I did wrong here? My placement of the tick function, perhaps? timer dart flutter share | improve this question asked Jan 19 at 11:51 vbquestions vbquestions 45 6 ...