You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I came across this problem with Redactor which was presented to me after updating composer.json, reviewing by the inspector I came across the error: Uncaught TypeError: $(...).closest(...).size is not a function,
After reviewing I saw that the error was presented in the line 1463 of the redactor. js
generated by the update that was made of the jquery (version 3.x), searching the web I found the solution to the problem, I want to know if it is a feasible solution or has to be corrected in another way.
Solution:
original
line 1463: if ($(e.target).closest('.redactor-editor, .redactor-toolbar, .redactor-dropdown').size() !== 0) line 6913: if ($current.closest(element).size() > 0)
modified line 1463: if ($(e.target).closest('.redactor-editor, .redactor-toolbar, .redactor-dropdown').length !== 0) line 6913: if ($current.closest(element).length > 0)
Hello, I came across this problem with
Redactor
which was presented to me after updatingcomposer.json
, reviewing by the inspector I came across the error:Uncaught TypeError: $(...).closest(...).size is not a function
,After reviewing I saw that the error was presented in the line 1463 of the redactor. js
generated by the update that was made of the jquery (version 3.x), searching the web I found the solution to the problem, I want to know if it is a feasible solution or has to be corrected in another way.
Solution:
original
line 1463: if ($(e.target).closest('.redactor-editor, .redactor-toolbar, .redactor-dropdown').size() !== 0)
line 6913: if ($current.closest(element).size() > 0)
modified
line 1463: if ($(e.target).closest('.redactor-editor, .redactor-toolbar, .redactor-dropdown').length !== 0)
line 6913: if ($current.closest(element).length > 0)
Reference: stackoverflow
P.D: I'm still waiting to solve this case
The text was updated successfully, but these errors were encountered: