It is not possible to set autolink_urlRegex and autolink_emailRegex properties of autolink plugin #3156
Labels
plugin:autolink
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
file://C:/test/
and press space(I know the URL is invalid and the regex should be changed becaue it match
file:///C:/test/
but this is just for simplicity of testing)Expected result
Text should get linked.
Actual result
Text doesn't get linked
Other details
This is happening because plugin code uses e.g.
CKEDITOR.config.autolink_emailRegex
instead ofeditor.config.autolink_emailRegex
:https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/autolink/plugin.js#L128
https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/autolink/plugin.js#L103
https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/autolink/plugin.js#L127
what makes impossible to overwrite values for these properties.
The text was updated successfully, but these errors were encountered: