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-0.6.15 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.14 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.13 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.12 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.11 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.10 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.23 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.9 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.8 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.7 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
social_stream-base-0.7.2 vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
social_stream-base-0.7.1 vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
social_stream-base-0.7.0 vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.6 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.22 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.21 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.5 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.4 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.3 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.20 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js