Ticket #7793: 7793.patch

File 7793.patch, 887 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/elementspath/plugin.js

     
    196196                                        editor.fire( 'elementsPathUpdate', { space : space } );
    197197                                });
    198198
    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                        }
    205204
     205                        editor.on( 'readOnly', empty );
     206                        editor.on( 'contentDomUnload', empty );
     207
    206208                        editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
    207209                }
    208210        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy