Files
sogo/UI/WebServerResources/ckeditor/plugins/placeholder/dialogs/placeholder.js
Francis Lachapelle 5c8e5a1fe2 Updated CKEditor to version 3.6.3.
Monotone-Parent: 2c3f8544a30679096de28ae80a840c371b12d94b
Monotone-Revision: bd8544b99b099a3544a5acdb3bdcc8c219709ff1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-04-18T13:14:02
2012-04-18 13:14:02 +00:00

7 lines
988 B
JavaScript

/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){function a(b,c){var d=b.lang.placeholder,e=b.lang.common.generalTab;return{title:d.title,minWidth:300,minHeight:80,contents:[{id:'info',label:e,title:e,elements:[{id:'text',type:'text',style:'width: 100%;',label:d.text,'default':'',required:true,validate:CKEDITOR.dialog.validate.notEmpty(d.textMissing),setup:function(f){if(c)this.setValue(f.getText().slice(2,-2));},commit:function(f){var g='[['+this.getValue()+']]';CKEDITOR.plugins.placeholder.createPlaceholder(b,f,g);}}]}],onShow:function(){if(c)this._element=CKEDITOR.plugins.placeholder.getSelectedPlaceHoder(b);this.setupContent(this._element);},onOk:function(){this.commitContent(this._element);delete this._element;}};};CKEDITOR.dialog.add('createplaceholder',function(b){return a(b);});CKEDITOR.dialog.add('editplaceholder',function(b){return a(b,1);});})();