Sha256: 2527423649ef0ea501d012679058f38546bbb1ee80bf33bb408c0ff27aa4450d

Contents?: true

Size: 1.7 KB

Versions: 149

Compression:

Stored size: 1.7 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('hiddenfield',function(a){return{title:a.lang.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){var e=this;delete e.hiddenField;var b=e.getParentEditor(),c=b.getSelection(),d=c.getSelectedElement();if(d&&d.data('cke-real-element-type')&&d.data('cke-real-element-type')=='hiddenfield'){e.hiddenField=d;d=b.restoreRealElement(e.hiddenField);e.setupContent(d);c.selectElement(e.hiddenField);}},onOk:function(){var g=this;var b=g.getValueOf('info','_cke_saved_name'),c=g.getValueOf('info','value'),d=g.getParentEditor(),e=CKEDITOR.env.ie&&!(CKEDITOR.document.$.documentMode>=8)?d.document.createElement('<input name="'+CKEDITOR.tools.htmlEncode(b)+'">'):d.document.createElement('input');e.setAttribute('type','hidden');g.commitContent(e);var f=d.createFakeElement(e,'cke_hidden','hiddenfield');if(!g.hiddenField)d.insertElement(f);else{f.replace(g.hiddenField);d.getSelection().selectElement(f);}return true;},contents:[{id:'info',label:a.lang.hidden.title,title:a.lang.hidden.title,elements:[{id:'_cke_saved_name',type:'text',label:a.lang.hidden.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.data('cke-saved-name')||b.getAttribute('name')||'');},commit:function(b){if(this.getValue())b.setAttribute('name',this.getValue());else b.removeAttribute('name');}},{id:'value',type:'text',label:a.lang.hidden.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){if(this.getValue())b.setAttribute('value',this.getValue());else b.removeAttribute('value');}}]}]};});

Version data entries

149 entries across 146 versions & 16 rubygems

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