Showing posts with label firefox. Show all posts
Showing posts with label firefox. Show all posts

Wednesday, March 28, 2012

Atlas, Firefox, and TinyMCE

I can't get TinyMCE to work with Firefox and Atlas.

Any changes made to the TextArea that tinyMCE is attached to are lost on postback. However, IE is fine, and removing the <atlas:ScriptManager> tag fixes it in Firefox too.

The following simple page fails:

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">tinyMCE.init({mode : "textareas"});</script>
</head>
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox id="tb" runat="server" Rows="10" TextMode="multiLine" Text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."></asp:TextBox>
<br />
<asp:Button ID="saveBtn" runat="server" Text="Postback" />
</form>
</body>
</html>
Has anyone successfully used tinyMCE and Firefox with Atlas enabled? Having said that, this 'Write a New Post' form looks very much like TinyMCE, and I'm using Firefox!?!
Any ideas?

Are people using other rich text editors successfully with Atlas?

Freetextbox?

FckEditor?


I've run into the same problem. Have you been able to figure this out? If so, what was your solution?

Thanks,
kevin


I had the same problem and solved it as follows:

- remove the ValidateRequest=false directive to avoid possible security issues

- add encoding : "xml"to the tinyMCE.Init code. This translates the HTML-code to XML and by doing this the secuity message won't appear.

- when filling the tinyMCE control with text, use TinyMCE.Text = Server.HtmlDecode(value); to translate it back into HTML

This worked out fine for me. I use the TinyMCE in a user control. The HTLM-translation is implemented in the Text property of the control.

Hopefully this helps.

ATLAS WITH EXPLORER

I want to use atlas in my project, but someone tell me that atlas work very good with firefox but no work with explorer and many time faild the explorer.

is atlas and explorer work together also in big projects?

thanks!

Hi,

you can surely use Atlas with Internet Explorer.

Monday, March 26, 2012

Atlas vs Yahoo UI Library

Hi folks,

I was testing Atlas and learning the basis of it and Ajax. The Tasklist sample that comes with Atlas just crash my Firefox when moving the Note div !
Anyways.. that's not the point, and I still believe in Atlas. Might just be an extension that make it crashes!

This post is more about the popularity of Atlas vs Yahoo UI Library or any other ajax / UI related library.

I would like to know which ones tend to be used among web developpers, the pros and cons of the major players..

Thanks for any help!

Hi Martin,

One of the things we are trying to-do with Atlas is provide a very strong foundation base for building Ajax UI controls and libraries on top. So I think you'll find that Atlas probably has a richer foundation and library platform layer than most Ajax libraries out there.

Having said that, it is still new -- so we don't have all the controls out there that we would like to have. We will be announcing a new Atlas Control Pack shortly with a bunch of additional controls that help with this, but until then you can probably find cool libraries like the Yahoo one that have more cool UI widgets.

Over the next few months, as the Atlas control ecosystem grows, I think you'll find even more cool UI widgets with Atlas and .NET.

Hope this helps,

Scott


Thanks for your reply Scott!

By curiosity, how many people work on such a great project? is it a few like ~5 people or is it more like 20 or even more?

Right now, I'm developping an intranet for a customer of ours, and I'd like to integrate drag and drop functionnality. Does atlas is stable enough for me to use that? As I said, one of the demo just crash my firefox.

I'm really excited about Atlas and would prefer continu using MS stuff over other stuff.

Thanks