Hi all,
FCK 2.0 is great, and I am using the ASP version one now.
But ... the default input text box is just only 5 lines of the line height, for many user like mine is need write a very long chapter.... the 5 lines only input box is too small.
Anyone know how to change it from 5 lines to 50 lines or more??
thx for your time.
FCK 2.0 is great, and I am using the ASP version one now.
But ... the default input text box is just only 5 lines of the line height, for many user like mine is need write a very long chapter.... the 5 lines only input box is too small.
Anyone know how to change it from 5 lines to 50 lines or more??
thx for your time.
RE: How to change the line hight from 5 to 50
thx for your time
RE: How to change the line hight from 5 to 50?
RE: How to change the line hight from 5 to 50
thx for your kind response . ......
But I have try to do this and then uploaded to the server, it had error.
I had try below way, but failed
oFCKeditor.Height = '<500';
or
oFCKeditor.Height = '500';
or
oFCKeditor.Height = "500";
or
oFCKeditor.Height = "500" (This haven't error, but the hight haven't change)
Can you post a better example for me to reference?
Thx for your time.
RE: How to change the line hight from 5 to 50
It works for me via the ASP wrapper.
Type of quotes doesn't matter as long as you open and close with the same type.
Perhaps you could try
oFCKeditor.Height = "500px";
Also, especially if you are using Firefox, make sure you clear your cache after changing the code every time ... Firefox caches js files very agressively. I strongly recommend the Firefix Web Developer Extension as an easy way to clear/disable caching while you work.
http://chrispederick.com/work/firefox/webdeveloper/
Good luck
Ben
RE: How to change the line hight from 5 to 50
Dear Ben,
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Value = rsNews.Fields.Item("NewsBody").Value
oFCKeditor.Create "NewsBody"
oFCKeditor.Height = "500px";
%>
Above is my ASP code, but after uploaded to the server
It just show me this error
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/dominical/dupdate.asp, line 393
oFCKeditor.Height = "500px";
---------------------------^
You can go here to see the error screen, I am using ASP too.
http://test.cheungchaubc.org/dominical/ ... ?NewsID=15
Jimmy Chan
RE: How to change the line hight from 5 to 50
Oh I see, you are using the ASP wrapper, so the type of quotes does matter, and the semicolon is not needed (that's javascript syntax). Sorry about that
The correct code in ASP is
oFCKEditor.Height = "200"
but it has to be before the call to .Create
so in your case:
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Value = rsNews.Fields.Item("NewsBody").Value
oFCKeditor.Height = "500"
oFCKeditor.Create "NewsBody"
%>
RE: How to change the line hight from 5 to 50
Thanks you very much, now it work for me.
Another questions, where did you find those data? I am a beginner for the programmering code.
I search Official's web site, they haven't provide how to custom the setting like this. So for some beginner like me, FCKeditor sometime is hard to custom yet. Since little example for reference.
Really thx for you kindly help.
Best regards,
Jimmy Chan
RE: How to change the line hight from 5 to 50
Hi Jimmy,
Yes you are right, the documentation is not very complete and the product is not that suitable for a beginner. Many things I learned about it are from digging around in the code - after all I do this 12 hours a day
That being said it's a good way to learn about programming - take a look in fckeditor.asp for a clue to other properties of the ASP wrapper, and in FCKConfig.js for some other setup options. The only thing to do is change things and see what happens
Good luck
Ben
RE: How to change the line hight from 5 to 50
I have a follow-up question on this topic, if I may.
At least one of the sample files that ship with the editor (fckeditor/_samples/html/sample02.html) shows setting width and height by setting a style within the textarea tag:
<textarea id="FCKeditor1" name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">
Setting the properties this way doesn't work, even in the example file, and the configuration method offered here does, but it would be nice to be able to set ROWS & COLS or style WIDTH & HEIGHT like any other textarea.
Anyone know the story on this? Is there a way to invoke the editor so that it honors the settings in the textarea tag, or am I misreading the intent of the STYLE tag in the example?
Many thanks,
drag resize input width ,height also change
when i resize a input element'width in IE throgh mouse drag ,i found its height also change,its about 2px