CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 fckeditor and .net

Print topic Send  topic

Author Message
johntom

Posts: 6
Posted: 02/19/2006, 2:36 PM

Hi,
I'm trying to get fckeditor to work in my c# project and have tried following all code examples but have not been able to get it to work. Is there an example I can view?
View profile  Send private message
Jaro Steigauf
Posted: 02/19/2006, 11:07 PM

1. HMTL page
<!-- BEGIN FCKEditorASPX -->
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2"
Assembly="FredCK.FCKeditorV2" %><!-- END FCKEditorASPX -->

<td valign="top">
<!-- BEGIN FCKEditor -->
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" width="100%"
height="700px"></FCKeditorV2:FCKeditor>
<!-- END FCKEditor --></td>

2. ASPXPage.cs

a. definition

protected FredCK.FCKeditorV2.FCKeditor FCKeditor1;

b. read value from database field to FCKEditor. The content of database
field is in FCK.

//Record news1 Event BeforeShow. Action Custom Code @57-2A29BDB7
// -------------------------
// Write your own code here.

this.FCKeditor1.Value = news1news_text.Text;


c. If I click on the icon Save, then FCK calls method SaveValue() and I
write value from FCK to my field .

/Page Event AfterInitialize. Action FCKEditor OnInit @128-AC4992E4
// -------------------------
// Write FCKEditor OnInit
this.FCKeditor1.ValueChanged += new
System.EventHandler(this.SaveValue);
// -------------------------
//End Page Event AfterInitialize. Action FCKEditor OnInit

c.
//write
private void SaveValue(object sender, System.EventArgs e)
{
string h = this.FCKeditor1.Value;
if (news1ListBox1.Value == "1")
{
h = this.FCKeditor1.Value.Replace("<P>","");
h = h.Replace("</P>","<BR>");
}
news1news_text.Text = this.FCKeditor1.Value;
}






"johntom" <johntom@forum.codecharge> wrote in message
news:843f8f2df6b69e@news.codecharge.com...
> Hi,
> I'm trying to get fckeditor to work in my c# project and have tried
following
> all code examples but have not been able to get it to work. Is there an
example
> I can view?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

johntom

Posts: 6
Posted: 02/20/2006, 6:42 PM



Author Message
johntom

Posted: 02/20/2006, 6:30 PM
Hi,
Thanks for your prompt reply and I've tried to use your previous posting as a model but don't seem to get it.
TIA
John
1. I add reference C:\Inetpub\wwwroot\Portal\FCKeditor\FredCK.FCKeditorV2.dll
2. I add following to html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- BEGIN FCKEditorASPX -->
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2"
Assembly="FredCK.FCKeditorV2" %><!-- END FCKEditorASPX -->
<td valign="top">
</td>
<head>
<title>Edit Article</title>
<meta content="CodeCharge Studio 3.0.2.2" name="GENERATOR">
<link href="Styles/SandBeach/Style.css" type="text/css" rel="stylesheet">
</head>
<body text="#000000" bottommargin="0" vlink="#000000" alink="#ff0000" link="#000000" leftmargin="0" background="Themes/Default/Background.gif" topmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
<p><input style="WIDTH: 8px; HEIGHT: 22px" size="1" value="{TextBox1}" name="{TextBox1_Name}">{Header}
<!-- BEGIN FCKEditor -->
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" width="100%"
height="700px"></FCKeditorV2:FCKeditor>
<!-- END FCKEditor -->

protected FredCK.FCKeditorV2.FCKeditor FCKeditor1;

this.FCKeditor1.Value = articlesarticle_desc.Text;

I skip the save test so that I can try and view but I get The page cannot be found.


4) I can't add the save part because the compiler blows up
//Page EditArticle Event AfterInitialize. Action Custom Code @110-2A29BDB7
//Write FCKEditor OnInit
this.FCKeditor1.ValueChanged += new System.EventHandler(this.SaveValue);


Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1218,73): error CS1513: } expected
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1231,27): error CS1519: Invalid token '=' in class, struct, or interface member declaration
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1231,50): error CS1519: Invalid token ';' in class, struct, or interface member declaration
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1238,23): error CS1519: Invalid token '=' in class, struct, or interface member declaration
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1238,41): error CS1519: Invalid token '(' in class, struct, or interface member declaration
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1238,55): error CS1519: Invalid token ')' in class, struct, or interface member declaration
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1247,5): error CS0116: A namespace does not directly contain members such as fields or methods
Error:c:\Documents and Settings\jrt\Local Settings\Temp\~Portal\EditArticle.aspx.cs(1257,1): error CS1022: Type or namespace definition, or end-of-file expected



View profile  Send private message
johntom

Posts: 6
Posted: 02/21/2006, 5:33 PM

Hi,
I fixed most of the problems by changing reference to C:\Inetpub\wwwroot\Portal\bin\FredCK.FCKeditorV2.dll
But I still don't know how to get the ValueChanged function to work? I've tried changing the FCKeditor.cs but I still get:
FredCK.FCKeditorV2.FCKeditor' does not contain a definition for 'ValueChanged'
TIA
John
View profile  Send private message
Jaro Steigauf
Posted: 02/23/2006, 2:00 AM

I sent zip file it on your e-mail



"johntom" <johntom@forum.codecharge> wrote in message
news:843fbbf8476715@news.codecharge.com...
> Hi,
> I fixed most of the problems by changing reference to
> C:\Inetpub\wwwroot\Portal\bin\FredCK.FCKeditorV2.dll
> But I still don't know how to get the ValueChanged function to work? I've
tried
> changing the FCKeditor.cs but I still get:
> FredCK.FCKeditorV2.FCKeditor' does not contain a definition for
'ValueChanged'
> TIA
> John
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

johntom

Posts: 6
Posted: 02/23/2006, 2:13 PM

Jaro,
I never received your email with attachment.
John
View profile  Send private message
Jaro Steigauf
Posted: 02/25/2006, 1:15 AM

You write mi other e-mail account, because I get error message if I want to
send it onjohntom@forum.codecharge.


"johntom" <johntom@forum.codecharge> wrote in message
news:843fe3384c6792@news.codecharge.com...
> Jaro,
> I never received your email with attachment.
> John
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

johntom

Posts: 6
Posted: 02/25/2006, 5:31 AM

Jaro,
jrt@gtz.com
Thanks again
View profile  Send private message
xyla


Posts: 17
Posted: 06/12/2006, 4:56 AM

Hi,

Have the same problem. I realy would like to receive this zip also.

info@xyla.nl

Best regards,

Wilco
_________________
http://xyla.nl | Your Solution Provider
View profile  Send private message
dedomraz
Posted: 08/08/2006, 1:46 AM

Hi Jaro, could you please email me the zip?

My email isdedomraz@hotmail.com.

Thanks
Diesel

Posts: 43
Posted: 09/30/2006, 12:02 PM

Hi everyone

Why dont you just impliment it with javascript?
View profile  Send private message
STi
Posted: 11/06/2006, 12:17 AM

Hi Jaro, could you please email me the zip?
Thank you in advance.

My emailjure.smrekar@gmail.com.

Thanks
Jitendra Shinde
Posted: 12/22/2006, 8:45 AM

Hi johntom / Jaro,

could you please email me the zip?

My email Id is
jitendra.shinde@gmail.com

Thanks & Regards,
Jitendra Shinde
Jaro Steigauf
Posted: 12/27/2006, 6:13 AM

You have it on your email

jaro

<JitendraShinde@forum.codecharge (Jitendra Shinde)> wrote in message
news:8458c0bbebfce0@news.codecharge.com...
> Hi johntom / Jaro,
>
> could you please email me the zip?
>
> My email Id is
>jitendra.shinde@gmail.com
>
> Thanks & Regards,
> Jitendra Shinde
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

bianchef
Posted: 12/28/2006, 5:21 AM

Johntom / Jaro

Would you please email me the zip on the fckeditor and .net solution?

Please send tobianchef@optonline.net

Thanks
delorie
Posted: 01/24/2007, 12:20 PM

please post solution or email me as well thanks.
delorie
Posted: 01/24/2007, 12:21 PM

to this addressryan.temporary@cox.net
korigan-45

Posts: 1
Posted: 02/13/2007, 8:09 AM

Hi Jaro,

Would you please email me the zip on the fckeditor and .net solution?

Please send tofrederic.desmond@free.fr

Thanks
View profile  Send private message
Aldan
Posted: 02/19/2007, 2:53 AM

Hi Jaro, please mail me this zip to <a href="mailto:suhinini@gmail.com">my mailbox</a>.

P.S. You could possibly upload this zip to some website and post a link, that would be _much_ easier for you :)
andrefogelman

Posts: 117
Posted: 02/24/2007, 1:43 AM

With CCS 3.1 none of this is necessary.
I have created net 2.0 projects where I set the path to where I have installed Fckeditor.
I create a record form with a textarea linked to a field.
Then I select actions and select attach Fckeditor. Set the parameters and it works.
That is all there is to it,
View profile  Send private message
Yanela
Posted: 03/08/2007, 2:15 AM

:-@
Hi

Can someone please help, i am trying to get the value of the fckEditor in c#
bvv
Posted: 03/19/2007, 4:29 AM

:(:(
REVENSE

Posts: 46
Posted: 07/30/2007, 11:24 PM

Hi Jaro,

could you please email me the zip? and more expalned about fckeditor

My email Id is
jun4r@yahoo.com

Thanks & Regards,
junar
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.