X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Felementspath%2Fplugin.js;h=47e7c4785bec7b7ca25fb4939213ecb4d132c11a;hb=055b6b0792ce7dc53d47af606b367c04b927c2ab;hp=7c39fce38e67d32b62ba77dcec9cffa6205e9f0a;hpb=8665a7c6c60586526e32e8941fe2896739b6ebfb;p=ckeditor.git diff --git a/_source/plugins/elementspath/plugin.js b/_source/plugins/elementspath/plugin.js index 7c39fce..47e7c47 100644 --- a/_source/plugins/elementspath/plugin.js +++ b/_source/plugins/elementspath/plugin.js @@ -133,7 +133,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.on( 'contentDomUnload', function() { - getSpaceElement().setHtml( emptyHtml ); + // If the spaceElement hasn't been initialized, don't try to do it at this time + // Only reuse existing reference. + spaceElement && spaceElement.setHtml( emptyHtml ); }); editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );