mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '3.5' into 3.6
This commit is contained in:
commit
a34be33c56
@ -868,14 +868,15 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
||||
// // Element contains a link
|
||||
// var firstLinkEl = selectedEl.find('a:first');
|
||||
// if(firstLinkEl.length) linkDataSource = firstLinkEl;
|
||||
|
||||
// if(linkDataSource && linkDataSource.length) this.modifySelection(function(ed){
|
||||
// ed.selectNode(linkDataSource[0]);
|
||||
// });
|
||||
} else {
|
||||
// Element is a child of a link
|
||||
linkDataSource = selectedEl = selectedEl.parents('a:first');
|
||||
}
|
||||
}
|
||||
if(linkDataSource && linkDataSource.length) this.modifySelection(function(ed){
|
||||
ed.selectNode(linkDataSource[0]);
|
||||
});
|
||||
|
||||
// Is anchor not a link
|
||||
if (!linkDataSource.attr('href')) linkDataSource = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user