4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
13 Roo.onReady(function(){
17 // turn on validation errors beside the field globally
18 Roo.form.Field.prototype.msgTarget = 'side';
21 * ================ Form 2 =======================
23 var top = new Roo.form.Form({
27 fck = new Roo.form.FCKeditor({
29 fieldLabel:'Biography',
32 CustomConfigurationsPath : '/roojs1/examples/form/fckconfig.js'
37 value : '<blockquote>aaa<br/></blockquote>',
41 editorinit : function(ed, f) {
42 var de = f.EnterKeyHandler.DoEnter;
43 f.EnterKeyHandler.constructor.prototype.DoEnter =
44 f.EnterKeyHandler.DoEnter = function(m,h) {
46 try { de(m,h); } catch(e) { }
47 //..console.log(this);
49 window.setTimeout( function() {
51 f.EditorDocument.execCommand('outdent', false, null);
52 f.EditorDocument.execCommand('outdent', false, null);
53 f.EditorDocument.execCommand('outdent', false, null);
54 f.EditorDocument.execCommand('outdent', false, null);
55 } catch(e) { console.log(e)}
59 // this._OutdentWithSelection( currentBlock, range )
62 //f.EnterKeyHandler.DoEnter = function(m, hs) {
76 top.addButton('Save', function(){
77 top.doAction('submit', {
83 top.addButton('Cancel');
85 top.render('form-ct2');