From 065f052d1e00a5df90b91d3d5c71b99c37fadefa Mon Sep 17 00:00:00 2001 From: martinkou Date: Fri, 27 Feb 2009 10:09:12 +0000 Subject: [PATCH] Fixed #2978 : Show blocks state is now persistent across mode switches. git-svn-id: https://svn.ckeditor.com/CKEditor/trunk@3111 da63caf2-3823-0410-a1e8-d69ccee00dfb --- _source/plugins/showblocks/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_source/plugins/showblocks/plugin.js b/_source/plugins/showblocks/plugin.js index fc548f2fb7..60cc7bafb9 100755 --- a/_source/plugins/showblocks/plugin.js +++ b/_source/plugins/showblocks/plugin.js @@ -91,8 +91,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var isOn = ( this.state == CKEDITOR.TRISTATE_ON ); var funcName = isOn ? 'removeClass' : 'addClass'; editor.document.getBody()[ funcName ]( 'cke_show_blocks' ); + this.toggleState(); - editor._.showBlocks = isOn; + editor._.showBlocks = !isOn; } };