-
24 Aug 2007 11:44 AM #11
I am getting an error:Ext.reg is not a function -- Ext.reg('codepress', Ext.ux.CodePress); line 245
-
28 Aug 2007 8:30 AM #12
first - thx for this, i need that atm and i'm happy to use it this way.
I have a strange effect by scrolling, look to the screenshot.vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
30 Aug 2007 10:05 AM #13
Not sure which is better, but if you've never come across it:
http://www.cdolivet.net/editarea/edi...mple_full.html
Has a bit more to it then codepress, goto line, search, and the line numbers aren't a image. Anyways -- I'm undecided. If codepress could get away from using the image for line numbers I'd like it more, I think its a better performing engine.
-
3 Sep 2007 12:38 PM #14
I get errors with the extension.
when i only include the Ext.ux.codepress.js, i get
Ext.reg has no properties
Ext.reg('codepress', Ext.ux.CodePress);
when i remove that line i get next error after
Error:PHP Code:var codeHTML=new Ext.ux.CodePress({
id: 'docadminTemplateEditor'
, element: 'ext_html_example'
, language: 'html'
, autoResize: true
});
this.editor has no properties
[Break on this error] this.editor.body = this.doc.getElementsByTagName('body')[0];vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
14 Sep 2007 7:49 AM #15
Hi
I have the same problem. Any solution?!
greetings
Andreas
-
14 Sep 2007 7:55 AM #16
additional I have the save scrolling problem (horizontal lines)
:-(
-
16 Sep 2007 1:44 PM #17
-
18 Sep 2007 1:54 AM #18
yes, it's also in the demo.
i stopped investigating atm and look for another solution.vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
1 Mar 2008 3:33 PM #19
linenumbers-off
linenumbers-off
I'm having trouble turning line numbers off. I'm able to do this with CodePress alone but not with Ext.ux.CodePress. I tried setting cls:'linenumbers-off' in the Ext.ux.CodePress config but that does not help. I also tried calling toggleLineNumbers() once the component is instantiated. Has anyone had this work?
-
5 Apr 2008 12:37 PM #20
At me it is impossible to put Ext.ux. CodePress in TabPanel,
The form is not sent and appears a glitch,
Prompt please as it to correct
I am sorry for English (I use the translator)
PHP Code:var tpl_TabAdd = function(node)
{
Ext.MessageBox.show({
msg: 'получение страници',
progressText: 'Згрузка...',
width:300,
wait:true
});
Ext.Ajax.request({
url : 'src/page_tpl_get:'+node.text,
method: 'GET',
success: function ( result, request ) {
//alert(result.responseText);
Ext.MessageBox.hide();
tab = new Ext.FormPanel({
title: node.text,
closable:true,
autoScroll:true,
id:'tpl_'+node.id,
bodyStyle:'padding:5px',
items: [new Ext.ux.CodePress({
name:'html',
width: '100%',
height:'99%',
language: 'html',
autoResize:true,
value:result.responseText
})],
buttons: [{
text: 'Submit',
handler: function(){
tab.form.submit({
url:'/admin/src/page_seve:'+node.id,
failure:function(result, request)
{
},
waitMsg:'Обработка запроса...',
waitTitle:'Сохранение...'
});
}
}]
});
tabPanel.add(tab).show();
}
});
}


Reply With Quote

