Fix file link recognition in HtmlEditorField.js

The new file_link format ([file_link,id=\d+]) uses a comma which was not reflected in the regex.
This commit is contained in:
mikg0 2013-05-13 15:04:52 +03:00
parent bb6283740a
commit fb5fc62604

View File

@ -716,7 +716,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
email: RegExp.$1,
Description: title
};
} else if(href.match(/^(assets\/.*)$/) || href.match(/^\[file_link\s*(?:%20)?id=([0-9]+)\]?(#.*)?$/)) {
} else if(href.match(/^(assets\/.*)$/) || href.match(/^\[file_link\s*(?:\s*|%20|,)?id=([0-9]+)\]?(#.*)?$/)) {
return {
LinkType: 'file',
file: RegExp.$1,