Sha256: d71d76d5a2c535cd92dc1cfa93944199cc90816ecb959c16c3765e91f3c67a65

Contents?: true

Size: 1.5 KB

Versions: 13

Compression:

Stored size: 1.5 KB

Contents

/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.plugins.add('format',{requires:['richcombo','styles'],init:function(a){var b=a.config,c=a.lang.format,d=b.format_tags.split(';'),e={};for(var f=0;f<d.length;f++){var g=d[f];e[g]=new CKEDITOR.style(b['format_'+g]);}a.ui.addRichCombo('Format',{label:c.label,title:c.panelTitle,voiceLabel:c.voiceLabel,className:'cke_format',multiSelect:false,panel:{css:[b.contentsCss,CKEDITOR.getUrl(a.skinPath+'editor.css')],voiceLabel:c.panelVoiceLabel},init:function(){this.startGroup(c.panelTitle);for(var h in e){var i=c['tag_'+h];this.add(h,'<'+h+'>'+i+'</'+h+'>',i);}},onClick:function(h){a.focus();a.fire('saveSnapshot');e[h].apply(a.document);a.fire('saveSnapshot');},onRender:function(){a.on('selectionChange',function(h){var i=this.getValue(),j=h.data.path;for(var k in e)if(e[k].checkActive(j)){if(k!=i)this.setValue(k,a.lang.format['tag_'+k]);return;}this.setValue('');},this);}});}});CKEDITOR.config.format_tags='p;h1;h2;h3;h4;h5;h6;pre;address;div';CKEDITOR.config.format_p={element:'p'};CKEDITOR.config.format_div={element:'div'};CKEDITOR.config.format_pre={element:'pre'};CKEDITOR.config.format_address={element:'address'};CKEDITOR.config.format_h1={element:'h1'};CKEDITOR.config.format_h2={element:'h2'};CKEDITOR.config.format_h3={element:'h3'};CKEDITOR.config.format_h4={element:'h4'};CKEDITOR.config.format_h5={element:'h5'};CKEDITOR.config.format_h6={element:'h6'};

Version data entries

13 entries across 7 versions & 2 rubygems

Version Path
openskip-skip_embedded-0.9.19 generators/skip_embedded_javascripts/templates/public/javascripts/skip_embedded/ckeditor/plugins/format/plugin.js
typo-5.5 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.5 public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.4 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.4 public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.3 public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.3 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.2 public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.2 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.1 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4.1 public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4 vendor/plugins/easy-ckeditor/public/javascripts/ckeditor/plugins/format/plugin.js
typo-5.4 public/javascripts/ckeditor/plugins/format/plugin.js