473,473 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ContentEditable Question

3 New Member
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
3 1279
acoder
16,027 Recognized Expert Moderator MVP
How are you setting it? Post your code. See if this page from MSDN docs helps.
Aug 12 '08 #2
alphabravo
3 New Member
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
16,027 Recognized Expert Moderator MVP
You're welcome. Glad to help :)
Aug 13 '08 #4

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

Similar topics

1
by: Csaba2000 | last post by:
I am going nuts on this. Am I just blind, or is there some bug either in my code or IE? Nutshell version: I have a content editable div that is supposed to show its entry in red if it is not...
2
by: gboissiere | last post by:
Hello 'contentEditable' gurus, The example code below uses contentEditable to let the user edit the <div> element directly in their browser. Works also using designMode for the document. ...
1
by: trevordixon | last post by:
I have an DIV with the contentEditable attribute. How can I get the value of the content within that DIV after the user has edited it for further processing. I'd like to store the HTML code within...
2
by: Dung Ping | last post by:
I like to see following to happen: When typing a number of 1 to 4 immediately after an alphabetic letter, it would become corresponding superscript. But if the user leaves a space after the...
3
by: nAmYzArC | last post by:
Hello every1, I have a "<DIV" tag with contenteditable turned on. I am using this as an area that users can either paste or drag/drop text into. The text can come from other browser windows and of...
1
by: dharshanav | last post by:
Hi All, Is there a way to make the Mozilla browser behave the same way as IE when using in the design mode? For IE: <div id="left_div" contenteditable="true" frameborder="no"...
1
by: delraydog | last post by:
Does a contentEditable DIV have the notion of an internal document? I'm trying to convert code that uses an IFrame.contentWindow.document to use the "document" inside a contentEditable DIV but they...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.