Skip to content
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

Basic Deletion tracking missing after insertion #144

Open
dhanayanshankar opened this issue Apr 11, 2018 · 1 comment
Open

Basic Deletion tracking missing after insertion #144

dhanayanshankar opened this issue Apr 11, 2018 · 1 comment

Comments

@dhanayanshankar
Copy link

We have checked the demo on your site link https://www.loopindex.com/lance/demo/

Steps : on Windows machine (Chrome browser)

demo text on screen : Welcome

Step 1 : place the cursor before the word 'Welcome' and insert the new word 'loopindex'.
Step 2 : use delete key to remove the word 'Welcome' without making any screen selection.

There is no track for the deletion event .

@jamesey2001
Copy link

jamesey2001 commented Nov 28, 2019

There is a simple fix for this.

open ice.js and go to line 491 with the return false; line,

add this line of code before it.

if(!( right && range.startOffset == range.endOffset && range.startContainer.length == range.startOffset))

if you have the minified sources with the lite plugin embedded in the ckeditor.js, search for

if(this._isCurrentUserIceNode(this._getIceNode(b.startContainer,"insertType")))return!1;

and replace it with:

if(this._isCurrentUserIceNode(this._getIceNode(b.startContainer,"insertType"))){if(!(a&&b.startOffset==b.endOffset&&b.startContainer.length==b.startOffset))return!1;}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants