Ticket #7793: 7793.patch
File 7793.patch, 887 bytes (added by , 13 years ago) |
---|
-
_source/plugins/elementspath/plugin.js
196 196 editor.fire( 'elementsPathUpdate', { space : space } ); 197 197 }); 198 198 199 editor.on( 'contentDomUnload', function() 200 { 201 // If the spaceElement hasn't been initialized, don't try to do it at this time 202 // Only reuse existing reference. 203 spaceElement && spaceElement.setHtml( emptyHtml ); 204 }); 199 function empty() 200 { 201 spaceElement && spaceElement.setHtml( emptyHtml ); 202 delete editor._.elementsPath.list; 203 } 205 204 205 editor.on( 'readOnly', empty ); 206 editor.on( 'contentDomUnload', empty ); 207 206 208 editor.addCommand( 'elementsPathFocus', commands.toolbarFocus ); 207 209 } 208 210 });