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
/
font
/
plugin.js
diff --git
a/_source/plugins/font/plugin.js
b/_source/plugins/font/plugin.js
index
70f3d9d
..
6a1efee
100644
(file)
--- a/
_source/plugins/font/plugin.js
+++ b/
_source/plugins/font/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-29,6
+29,7
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
vars[ styleType ] = values[ i ] = parts[ 1 ] || name;
\r
\r
styles[ name ] = new CKEDITOR.style( styleDefinition, vars );
\r
vars[ styleType ] = values[ i ] = parts[ 1 ] || name;
\r
\r
styles[ name ] = new CKEDITOR.style( styleDefinition, vars );
\r
+ styles[ name ]._.definition.name = name;
\r
}
\r
else
\r
names.splice( i--, 1 );
\r
}
\r
else
\r
names.splice( i--, 1 );
\r
@@
-55,7
+56,7
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
var name = names[ i ];
\r
\r
// Add the tag entry to the panel list.
\r
var name = names[ i ];
\r
\r
// Add the tag entry to the panel list.
\r
- this.add( name, '<span style="font-' + styleType + ':' + values[ i ] + '">' + name + '</span>', name );
\r
+ this.add( name, styles[ name ].buildPreview(), name );
\r
}
\r
},
\r
\r
}
\r
},
\r
\r