Validator fails when having functions defined in global scope #2650
Labels
status:confirmed
An issue confirmed by the development team.
support:2
An issue reported by a commercially licensed client.
target:minor
Any docs related issue that can be merged into a master or major branch.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
replace
method.You can also attach external JavaScript file with below code inside
Expected result
Table gets inserted.
Actual result
Table doesn't get inserted because the validator fails, claiming that row number must greater than 0 even though there is a default value of 3 present in the field.
Other details
It seems that regex function in https://github.com/ckeditor/ckeditor-dev/blob/major/plugins/dialog/plugin.js#L3138 references window object.
I have only managed to reproduce this issue with Table dialog but other dialogs could be affected as well.
Sample JS File with global function: testfile.zip
The text was updated successfully, but these errors were encountered: