By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,727 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,727 IT Pros & Developers. It's quick & easy.

ContentEditable Question

P: 3
Thanks to all for taking the time to read this and their help in advance.

I have been workng on implementing a rich text editor for an intranet application. Our target browser is IE6.

Basically, when the user Loads the Rich Text Editor by right clicking on a div, the javascript file sets the element's contentEditable attribute to true. Well that works just fine.

The problem is, all the other Divs and various other elements that support this feature are also being set to true also. This is undesirable as I am trying to limit editing to one section at a time.

So what gives with the attribute? It's crazy to think that setting one page element's attribute somehow trickles down/up to the other page alements.
Anybody have any insight into this?

Also, if anybody has a suggestion for a rich text editor/web editor that is free and comes with the source code, and comes in a flavor combination of C# and javascript, it would be appreciated.

Thanks again
Aug 12 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
How are you setting it? Post your code. See if this page from MSDN docs helps.
Aug 12 '08 #2

P: 3
That's great. The link told me everything I needed to know. I didn't catch the part about "hasLayout" causing inheritance. FYI, I am setting the value via javascript. element.contentEditable = true/false.

Thanks again
Aug 12 '08 #3

acoder
Expert Mod 15k+
P: 16,027
You're welcome. Glad to help :)
Aug 13 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.