Wednesday, March 21, 2012

wysiwyg in atlas

Has anyone found a wysiwyg editor that will work inside an update panel yet?The FCKEditor (http://www.fckeditor.net/) seems to work. Though its not the fastest loading.

newbie2006:

The FCKEditor (http://www.fckeditor.net/) seems to work. Though its not the fastest loading.

Hy!

I'm developing an Chat engine based on Atlas and I'm using FCK editor. I can't change the properties of FCKeditor inside the UpdatePanel. I want to clean the Message after Send Button Click. The code is the follow:

protected void Send_Click(object sender, EventArgs e){// Update Chat Panel ... //Clean up the editor FCKeditor1.Value ="";}

And the code in the ASPX is:

<atlas:UpdatePanelID="panelMessage"runat="server"Mode="Conditional"><ContentTemplate><FCKeditorV2:FCKeditorid="FCKeditor1"runat="server"/><asp:ButtonID="Send"runat="server"Text="Send"OnClick="Send_Click"/></ContentTemplate></atlas:UpdatePanel>


When I press the Send button the message is updated in the Chat, but the message from the editor don't desapear, only when I refresh the browser.

Anyone know one solution for this?

Thanks.

Paulo Alves.


Now I find the solution. First there is some incompatibilty with my CSS and the Atlas JS, so I replace with Server Side Label. The other was the property of UpdatePanel="Conditional", where I need to put an triger to work:

<atlas:UpdatePanel runat="server" ID="UpdatePanelMsg" Mode="Conditional"><Triggers> <atlas:ControlEventTrigger ControlID="Send" EventName="Click" /></Triggers><ContentTemplate><FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" /></ContentTemplate></atlas:UpdatePanel> <asp:Button ID="Send" runat="server" Text="Send" OnClick="Send_Click" CausesValidation="False" />

The Mode="always" is not a good option because it post the UpdatePanel every 2 sec fired by Triger of Chat panel refresh.

The FCK is a little bit slow for this purpose, I' m tring to find another option like the FreeTextBox or just a TextArea.

Best regards,

Paulo Alves.



Hellow.,

Sorry for direct contact.But i want to ask u a query .Its argent to be in work.My task is

Test and evaluate the FCKeditor.NET control.(FCKEditor in SketchControl).

But i not understand why FCK editor require.Still i try 1 example send u code -->

<%@. Page Language="C#" AutoEventWireup="false" ValidateRequest="false" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@. Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>

<html>

<head>

<title>FCKeditor - Sample</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body>

<form id="Form1" runat="server">

<FCKeditorV2:FCKeditor id="FCKeditor1" BasePath="/FCKeditor/" runat="server"></FCKeditorV2:FCKeditor>

<br>

<input id="Submit1" type="submit" value="Submit" runat="server">

</form>

</body>

</html>

But Give error like->server error HTTP Error 404 - Not Found.
pls tell what to do ...

No comments:

Post a Comment