X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Felementspath%2Fplugin.js;h=58cacc3397a1915e70ec789b1b0a6208eb94e10f;hb=refs%2Ftags%2Fv3.4.3;hp=47e7c4785bec7b7ca25fb4939213ecb4d132c11a;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/plugins/elementspath/plugin.js b/_source/plugins/elementspath/plugin.js index 47e7c47..58cacc3 100644 --- a/_source/plugins/elementspath/plugin.js +++ b/_source/plugins/elementspath/plugin.js @@ -155,7 +155,15 @@ CKEDITOR._.elementsPath = editor.focus(); var element = editor._.elementsPath.list[ elementIndex ]; - editor.getSelection().selectElement( element ); + + if ( element.is( 'body' ) ) + { + var range = new CKEDITOR.dom.range( editor.document ); + range.selectNodeContents( element ); + range.select(); + } + else + editor.getSelection().selectElement( element ); return false; },