Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Error after jquery update #63

Open
PROloggg opened this issue Sep 20, 2017 · 1 comment
Open

Error after jquery update #63

PROloggg opened this issue Sep 20, 2017 · 1 comment

Comments

@PROloggg
Copy link

After updating the jquery in yii2 to version 3, the widget stopped working. Screenshot with errors attached

image

@AjithLalps
Copy link
Contributor

the issue in line number 1463 and 6913 is that the jquery function size() is removed and use length instead of it.

the code block of the above mentioned lines will become like this :

for line 1463

if ($(e.target).closest('.redactor-editor, .redactor-toolbar, .redactor-dropdown').length !== 0)
{
	return;
}

and for line 6913 is

if ($current.closest(element).length > 0)
{
	this.observe.setDropdownProperties($item, inValues, outValues);
}

AjithLalps added a commit to AjithLalps/yii2-imperavi-redactor that referenced this issue Dec 16, 2017
issue asofter#63 solution. 
After updating the jquery in yii2 to version 3 the function size() is deprecated and removed, so added length instead of the function.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants