diff options
| author | Christian Fowler <cfowler@einstein> | 2015-01-30 19:20:19 -0500 |
|---|---|---|
| committer | Christian Fowler <cfowler@einstein> | 2015-01-30 19:20:19 -0500 |
| commit | e4db2d9180554ab7d65de6720e93d7f8a821a147 (patch) | |
| tree | 5698e22c1beac28a9bec9ca1c3497bd99e76977a /plugins/forms/dialogs/button.js | |
| parent | 37ba5177439f8c6ceea4d0abfe3ab8573e7f0b58 (diff) | |
| download | ckeditor-e4db2d9180554ab7d65de6720e93d7f8a821a147.tar.gz ckeditor-e4db2d9180554ab7d65de6720e93d7f8a821a147.tar.bz2 ckeditor-e4db2d9180554ab7d65de6720e93d7f8a821a147.zip | |
move distro to ckeditor subdirectory
Diffstat (limited to 'plugins/forms/dialogs/button.js')
| -rwxr-xr-x | plugins/forms/dialogs/button.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/forms/dialogs/button.js b/plugins/forms/dialogs/button.js deleted file mode 100755 index 56a4efd..0000000 --- a/plugins/forms/dialogs/button.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.dialog.add("button",function(b){function d(a){var b=this.getValue();b?(a.attributes[this.id]=b,"name"==this.id&&(a.attributes["data-cke-saved-name"]=b)):(delete a.attributes[this.id],"name"==this.id&&delete a.attributes["data-cke-saved-name"])}return{title:b.lang.forms.button.title,minWidth:350,minHeight:150,onShow:function(){delete this.button;var a=this.getParentEditor().getSelection().getSelectedElement();a&&a.is("input")&&a.getAttribute("type")in{button:1,reset:1,submit:1}&&(this.button= -a,this.setupContent(a))},onOk:function(){var a=this.getParentEditor(),b=this.button,d=!b,c=b?CKEDITOR.htmlParser.fragment.fromHtml(b.getOuterHtml()).children[0]:new CKEDITOR.htmlParser.element("input");this.commitContent(c);var e=new CKEDITOR.htmlParser.basicWriter;c.writeHtml(e);c=CKEDITOR.dom.element.createFromHtml(e.getHtml(),a.document);d?a.insertElement(c):(c.replace(b),a.getSelection().selectElement(c))},contents:[{id:"info",label:b.lang.forms.button.title,title:b.lang.forms.button.title,elements:[{id:"name", -type:"text",label:b.lang.common.name,"default":"",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:d},{id:"value",type:"text",label:b.lang.forms.button.text,accessKey:"V","default":"",setup:function(a){this.setValue(a.getAttribute("value")||"")},commit:d},{id:"type",type:"select",label:b.lang.forms.button.type,"default":"button",accessKey:"T",items:[[b.lang.forms.button.typeBtn,"button"],[b.lang.forms.button.typeSbm,"submit"],[b.lang.forms.button.typeRst, -"reset"]],setup:function(a){this.setValue(a.getAttribute("type")||"")},commit:d}]}]}});
\ No newline at end of file |
