Skip to content

Commit 3592a8e

Browse files
committed
Merge branch 't/9633'
2 parents a7caa20 + 7d5efc4 commit 3592a8e

File tree

9 files changed

+127
-17
lines changed

9 files changed

+127
-17
lines changed

dev/iconextractor/iconextractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@
142142
],
143143
[
144144
'about',
145-
'uicolor'
145+
'uicolor',
146+
'placeholder'
146147
]
147148
]
148149

plugins/menu/plugin.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ CKEDITOR.plugins.add( 'menu', {
113113
menuItemSource +=
114114
'<span class="cke_menubutton_inner">' +
115115
'<span class="cke_menubutton_icon">' +
116-
'<span class="cke_button_icon cke_button__{name}_icon" style="{iconStyle}"></span>' +
116+
'<span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span>' +
117117
'</span>' +
118118
'<span class="cke_menubutton_label">' +
119119
'{label}' +
@@ -431,9 +431,14 @@ CKEDITOR.plugins.add( 'menu', {
431431
// rtl: BLACK RIGHT-POINTING POINTER
432432
var arrowLabel = '&#' + ( this.editor.lang.dir == 'rtl' ? '9668' : '9658' ) + ';';
433433

434+
var iconName = this.name;
435+
if ( this.icon && !( /\./ ).test( this.icon ) )
436+
iconName = this.icon;
437+
434438
var params = {
435439
id: id,
436440
name: this.name,
441+
iconName: iconName,
437442
label: this.label,
438443
cls: this.className || '',
439444
state: stateName,
@@ -446,7 +451,7 @@ CKEDITOR.plugins.add( 'menu', {
446451
moveOutFn: menu._.itemOutFn,
447452
clickFn: menu._.itemClickFn,
448453
index: index,
449-
iconStyle: CKEDITOR.skin.getIconStyle( this.name, ( this.editor.lang.dir == 'rtl' ), this.icon, this.iconOffset ),
454+
iconStyle: CKEDITOR.skin.getIconStyle( iconName, ( this.editor.lang.dir == 'rtl' ), iconName == this.icon ? null : this.icon, this.iconOffset ),
450455
arrowHtml: hasSubMenu ? menuArrowTpl.output({ label: arrowLabel } ) : ''
451456
};
452457

-132 Bytes
Binary file not shown.
720 Bytes
Loading

plugins/placeholder/plugin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
CKEDITOR.plugins.add( 'placeholder', {
1414
requires: 'dialog',
1515
lang: 'en,bg,cs,cy,da,de,el,eo,et,fa,fi,fr,he,hr,it,nb,nl,no,pl,tr,ug,uk,vi,zh-cn', // %REMOVE_LINE_CORE%
16-
icons: 'createplaceholder,editplaceholder', // %REMOVE_LINE_CORE%
16+
icons: 'placeholder', // %REMOVE_LINE_CORE%
1717
onLoad: function() {
1818
CKEDITOR.addCss( '.cke_placeholder' +
1919
'{' +
@@ -31,7 +31,8 @@
3131
editor.ui.addButton && editor.ui.addButton( 'CreatePlaceholder', {
3232
label: lang.toolbar,
3333
command: 'createplaceholder',
34-
toolbar: 'insert,5'
34+
toolbar: 'insert,5',
35+
icon: 'placeholder'
3536
});
3637

3738
if ( editor.addMenuItems ) {
@@ -41,7 +42,8 @@
4142
label: lang.edit,
4243
command: 'editplaceholder',
4344
group: 'placeholder',
44-
order: 1
45+
order: 1,
46+
icon: 'placeholder'
4547
}
4648
});
4749

File renamed without changes.

skins/kama/skin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ CKEDITOR.skin.chameleon = function( editor, part ) {
243243
'indent,italic,justifyblock,justifycenter,justifyleft,justifyright,' +
244244
'link,maximize,newpage-rtl,newpage,numberedlist-rtl,numberedlist,' +
245245
'outdent-rtl,outdent,pagebreak-rtl,pagebreak,paste-rtl,paste,' +
246-
'pastefromword-rtl,pastefromword,pastetext-rtl,pastetext,preview-rtl,' +
246+
'pastefromword-rtl,pastefromword,pastetext-rtl,pastetext,placeholder,preview-rtl,' +
247247
'preview,print,radio,redo-rtl,redo,removeformat,replace,save,scayt,' +
248248
'select-rtl,select,selectall,showblocks-rtl,showblocks,smiley,' +
249249
'source-rtl,source,specialchar,spellchecker,strike,subscript,' +

skins/moono/dev/icons.svg

Lines changed: 112 additions & 10 deletions
Loading
844 Bytes
Loading

0 commit comments

Comments
 (0)