Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.5.3
[ckeditor.git]
/
_source
/
plugins
/
stylescombo
/
plugin.js
diff --git
a/_source/plugins/stylescombo/plugin.js
b/_source/plugins/stylescombo/plugin.js
index
d2f8eb3
..
74dd0b7
100644
(file)
--- a/
_source/plugins/stylescombo/plugin.js
+++ b/
_source/plugins/stylescombo/plugin.js
@@
-66,17
+66,20
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
loadStylesSet( function()
\r
{
\r
\r
loadStylesSet( function()
\r
{
\r
- var style, styleName;
\r
+ var style,
\r
+ styleName,
\r
+ lastType,
\r
+ type,
\r
+ i,
\r
+ count;
\r
\r
// Loop over the Array, adding all items to the
\r
// combo.
\r
\r
// Loop over the Array, adding all items to the
\r
// combo.
\r
- var lastType;
\r
- for ( var i = 0, count = stylesList.length ; i < count ; i++ )
\r
+ for ( i = 0, count = stylesList.length ; i < count ; i++ )
\r
{
\r
style = stylesList[ i ];
\r
styleName = style._name;
\r
{
\r
style = stylesList[ i ];
\r
styleName = style._name;
\r
-
\r
- var type = style.type;
\r
+ type = style.type;
\r
\r
if ( type != lastType )
\r
{
\r
\r
if ( type != lastType )
\r
{
\r
@@
-102,9
+105,8
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
editor.fire( 'saveSnapshot' );
\r
\r
var style = styles[ value ],
\r
editor.fire( 'saveSnapshot' );
\r
\r
var style = styles[ value ],
\r
- selection = editor.getSelection();
\r
-
\r
- var elementPath = new CKEDITOR.dom.elementPath( selection.getStartElement() );
\r
+ selection = editor.getSelection(),
\r
+ elementPath = new CKEDITOR.dom.elementPath( selection.getStartElement() );
\r
\r
style[ style.checkActive( elementPath ) ? 'remove' : 'apply' ]( editor.document );
\r
\r
\r
style[ style.checkActive( elementPath ) ? 'remove' : 'apply' ]( editor.document );
\r
\r
@@
-115,9
+117,8
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
{
\r
editor.on( 'selectionChange', function( ev )
\r
{
\r
{
\r
editor.on( 'selectionChange', function( ev )
\r
{
\r
- var currentValue = this.getValue();
\r
-
\r
- var elementPath = ev.data.path,
\r
+ var currentValue = this.getValue(),
\r
+ elementPath = ev.data.path,
\r
elements = elementPath.elements;
\r
\r
// For each element into the elements path.
\r
elements = elementPath.elements;
\r
\r
// For each element into the elements path.
\r
@@
-151,9
+152,9
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
var selection = editor.getSelection(),
\r
element = selection.getSelectedElement(),
\r
\r
var selection = editor.getSelection(),
\r
element = selection.getSelectedElement(),
\r
- elementPath = new CKEDITOR.dom.elementPath( element || selection.getStartElement() );
\r
+ elementPath = new CKEDITOR.dom.elementPath( element || selection.getStartElement() ),
\r
+ counter = [ 0, 0, 0, 0 ];
\r
\r
\r
- var counter = [ 0, 0, 0, 0 ];
\r
this.showAll();
\r
this.unmarkAll();
\r
for ( var name in styles )
\r
this.showAll();
\r
this.unmarkAll();
\r
for ( var name in styles )
\r