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
ckeditor-rails-0.0.2 vendor/assets/ckeditor/ckeditor/plugins/forms/dialogs/hiddenfield.js
ckeditor-rails-0.0.1 vendor/assets/ckeditor/plugins/forms/dialogs/hiddenfield.js
radiant-ck_editor_filter-extension-0.2.4 public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.19 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
radiant-ck_editor_filter-extension-0.2.3 public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js
radiant-ck_editor_filter-extension-0.2.2 public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js
inline_forms-0.9.18 public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js
spiderfw-0.6.2 apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js
radiant-ck_editor_filter-extension-0.2.1 public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js