Sha256: 6b98bd3afd3f988830b401db4c462c4e4db113066558e9dcc014e091e6bb10e0

Contents?: true

Size: 1.72 KB

Versions: 171

Compression:

Stored size: 1.72 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('button',function(a){function b(c){var e=this;var d=e.getValue();if(d){c.attributes[e.id]=d;if(e.id=='name')c.attributes['data-cke-saved-name']=d;}else{delete c.attributes[e.id];if(e.id=='name')delete c.attributes['data-cke-saved-name'];}};return{title:a.lang.button.title,minWidth:350,minHeight:150,onShow:function(){var e=this;delete e.button;var c=e.getParentEditor().getSelection().getSelectedElement();if(c&&c.is('input')){var d=c.getAttribute('type');if(d in {button:1,reset:1,submit:1}){e.button=c;e.setupContent(c);}}},onOk:function(){var c=this.getParentEditor(),d=this.button,e=!d,f=d?CKEDITOR.htmlParser.fragment.fromHtml(d.getOuterHtml()).children[0]:new CKEDITOR.htmlParser.element('input');this.commitContent(f);var g=new CKEDITOR.htmlParser.basicWriter();f.writeHtml(g);var h=CKEDITOR.dom.element.createFromHtml(g.getHtml(),c.document);if(e)c.insertElement(h);else{h.replace(d);c.getSelection().selectElement(h);}},contents:[{id:'info',label:a.lang.button.title,title:a.lang.button.title,elements:[{id:'name',type:'text',label:a.lang.common.name,'default':'',setup:function(c){this.setValue(c.data('cke-saved-name')||c.getAttribute('name')||'');},commit:b},{id:'value',type:'text',label:a.lang.button.text,accessKey:'V','default':'',setup:function(c){this.setValue(c.getAttribute('value')||'');},commit:b},{id:'type',type:'select',label:a.lang.button.type,'default':'button',accessKey:'T',items:[[a.lang.button.typeBtn,'button'],[a.lang.button.typeSbm,'submit'],[a.lang.button.typeRst,'reset']],setup:function(c){this.setValue(c.getAttribute('type')||'');},commit:b}]}]};});

Version data entries

171 entries across 168 versions & 19 rubygems

Version Path
spiderfw-1.0.1 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-1.0.0 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.39 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.5 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.4 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.3 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.38 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.37 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.35 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.34 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.33 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.32 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.31 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.30 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.29 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.2 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.1 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
spiderfw-0.6.28 apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.7.0 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js
classiccms-0.6.9 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/button.js