mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Enhancement Remove "Remove link" button from the editor's main toolbar
Fix behat for selecting link should focus on field
This commit is contained in:
parent
de7b746094
commit
c2841b6d64
@ -241,7 +241,6 @@ class TinyMCEConfig extends HTMLEditorConfig
|
|||||||
'emoticons' => null,
|
'emoticons' => null,
|
||||||
'paste' => null,
|
'paste' => null,
|
||||||
'code' => null,
|
'code' => null,
|
||||||
'link' => null,
|
|
||||||
'importcss' => null,
|
'importcss' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -180,6 +180,7 @@ var editor = jQuery('#$inputFieldId').entwine('ss').getEditor(),
|
|||||||
rng = document.createRange(),
|
rng = document.createRange(),
|
||||||
matched = false;
|
matched = false;
|
||||||
|
|
||||||
|
editor.getInstance().focus();
|
||||||
jQuery(doc).find('body *').each(function() {
|
jQuery(doc).find('body *').each(function() {
|
||||||
if(!matched) {
|
if(!matched) {
|
||||||
for(var i=0;i<this.childNodes.length;i++) {
|
for(var i=0;i<this.childNodes.length;i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user