Jump to content

Recommended Posts

Posted

O68=new Ext.ux.form.CodeMirror({id:"O68_id",codeMirrorPath:"uni-0.95.0.1045/codemirror-0.8",language:"pas",value:"aaaaa\n",n

 

The client does not want to see it, but the server to use it.

Posted

O68=new Ext.ux.form.CodeMirror({id:"O68_id",codeMirrorPath:"uni-0.95.0.1045/codemirror-0.8",language:"pas",value:"if (top.sss){\ntop.sss.destroy();\n}\n\ntop.sss=Ext.create('Ext.panel.Panel', {\n    \n    width: '100%',\n    height: '100%',\n    layout:'accordion',\n    defaults: {\n        // applied to each contained panel\n        bodyStyle: 'padding:15px'\n    },\n    layoutConfig: {\n        // layout-specific configs go here\n        titleCollapse: false,\n        animate: true,\n        activeOnTop: true\n    },\n    items: [{\n        title: 'Panel 1',\n        html: 'Panel content!'\n    },{\n        title: 'Panel 2',\n        html: 'Panel content!'\n    },{\n        title: 'Panel 3',\n        html: 'Panel content!'\n    }],\n    renderTo:'gan'\n});\n",name:"O68",enableKeyEvents:true,beforeinit:function(sender) {   sender.value='';       },

 

 

Sometimes, don't want to get the original value is sent to the client.

Posted

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  s:=UniSyntaxEdit1.Text;
  UniSyntaxEdit1.Text :='';
end;

procedure TMainForm.UniFormActivate(Sender: TObject);
begin
  UniSyntaxEdit1.Text :=s;
end;

 

 

 

OK!

Posted

<table class="x-field x-table-plain x-form-item x-form-type-text x-abs-layout-item x-field-default x-absolute-form-item" style="left: 584px; top: 324px; width: 137px; height: 150px; display: none;" cellpadding="0" id="OA9_id"><tbody><tr role="presentation" id="OA9_id-inputRow" class="x-form-item-input-row"><td role="presentation" id="OA9_id-labelCell" style="display:none;" valign="top" halign="left" width="105" class="x-field-label-cell"><label id="OA9_id-labelEl" for="OA9_id-inputEl" class="x-form-item-label x-unselectable" style="width:100px;margin-right:5px;" unselectable="on"></label></td><td role="presentation" class="x-form-item-body  " id="OA9_id-bodyEl" colspan="3"><textarea id="OA9_id-inputEl" name="OA9" rows="4" cols="20" tabindex="11" class="x-form-field x-form-text x-form-textarea" style="font:13px Courier New" autocomplete="off" aria-invalid="false"></textarea></td></tr></tbody></table>

<div id="CodeMirror-wrapping-OA9_id" class="CodeMirror-wrapping" style="position: absolute; left: 584px; top: 324px; width: 97px; height: 150px; padding-left: 40px;"><textarea style="position: absolute; left: -10000px; width: 10px;"></textarea><iframe class="codemirror-iframe-OA9_id" frameborder="0" src="javascript:false" style="border: 0px; width: 100%; height: 100%; display: block;"></iframe><div id="CodeMirror-line-numbers-OA9_id" style="position: absolute; height: 100%; top: 0px; left: 0px; width: 40px; overflow: hidden;"><div class="CodeMirror-line-numbers"><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>10</div><div>11</div><div>12</div><div>13</div><div>14</div><div>15</div><div>16</div></div></div></div>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...