Sha256: aad75693d09af5d86039e8e01a42ab0acc1d731866e3666805d42931243aa532

Contents?: true

Size: 1.99 KB

Versions: 171

Compression:

Stored size: 1.99 KB

Contents

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

CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.radioButton;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'&&b.getAttribute('type')=='radio'){c.radioButton=b;c.setupContent(b);}},onOk:function(){var b,c=this.radioButton,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','radio');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.checkboxAndRadio.radioTitle,title:a.lang.checkboxAndRadio.radioTitle,elements:[{id:'name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.data('cke-saved-name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.data('cke-saved-name',this.getValue());else{c.data('cke-saved-name',false);c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.checkboxAndRadio.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'checked',type:'checkbox',label:a.lang.checkboxAndRadio.selected,'default':'',accessKey:'S',value:'checked',setup:function(b){this.setValue(b.getAttribute('checked'));},commit:function(b){var c=b.element;if(!(CKEDITOR.env.ie||CKEDITOR.env.opera)){if(this.getValue())c.setAttribute('checked','checked');else c.removeAttribute('checked');}else{var d=c.getAttribute('checked'),e=!!this.getValue();if(d!=e){var f=CKEDITOR.dom.element.createFromHtml('<input type="radio"'+(e?' checked="checked"':'')+'></input>',a.document);c.copyAttributes(f,{type:1,checked:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}}}]}]};});

Version data entries

171 entries across 168 versions & 19 rubygems

Version Path
classiccms-0.3.6 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.5 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
ckeditor-rails-0.0.4 vendor/assets/ckeditor/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.4 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.3 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.2 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.1 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.3.0 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
erp_app-3.0.2 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/radio.js
erp_app-3.0.1 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/radio.js
classiccms-0.2.4.pre lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/radio.js
padrino-cms-0.1.1 lib/padrino-cms/public/admin/javascripts/ckeditor/plugins/forms/dialogs/radio.js
padrino-cms-0.1.1 lib/padrino-cms/generators/templates/public/admin/javascripts/ckeditor/plugins/forms/dialogs/radio.js
spiderfw-0.6.26 apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js
refinerycms-ckeditor-0.1.4 app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js
refinerycms-ckeditor-0.1.3 app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js
spiderfw-0.6.26.pre1 apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js
refinerycms-ckeditor-0.1.2 app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js
refinerycms-ckeditor-0.1.1 app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js
spiderfw-0.6.25 apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js