Skip to content

Commit

Permalink
Fixed #2978 : Show blocks state is now persistent across mode switches.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.ckeditor.com/CKEditor/trunk@3111 da63caf2-3823-0410-a1e8-d69ccee00dfb
  • Loading branch information
martinkou committed Feb 27, 2009
1 parent cdb9423 commit 065f052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _source/plugins/showblocks/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand Down

0 comments on commit 065f052

Please sign in to comment.