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
classiccms-0.5.7 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.5.6 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.5.5 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.5.2 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.5.1 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.5.0 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
ckeditor4ruby-0.0.1 ckeditor/plugins/forms/dialogs/hiddenfield.js
erp_app-3.0.7 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.27 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.4.2 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.4.1 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.4.0 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.3.9 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
erp_app-3.0.6 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js
erp_app-3.0.5 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js
erp_app-3.0.4 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js
erp_app-3.0.3 public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js
radiant-ck_editor_filter-extension-0.2.6 public/javascripts/extensions/ck_editor_filter/ckeditorrr/plugins/forms/dialogs/hiddenfield.js
classiccms-0.3.8 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js
classiccms-0.3.7 lib/classiccms/public/js/ckeditor/plugins/forms/dialogs/hiddenfield.js