473,388 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

A simple wysiwyg editor (IE, FF, O, S)

Hi,

I took apart an existing wysiwyg editor to try to learn how they work
and some of the important issues. The following url has my current
version that seems to work in Safari 2 and Firefox 2. It partly works
in Opera 9 and doesn't work in Internet Explorer 6. This demo uses a
hidden iframe containing a document in design mode.

<URL: http://peter.michaux.ca/temp/rte/example.html>

In Opera 9 it is possible to select some of the wysiwyg text and click
one of the toolbar options (bold etc) and have the desired affect take
place. However when nothing is selected, clicking on a toolbar option
is different than in Safari and Firefox. The click makes the iframe
loose focus and the desired formatting does not occur when typing again
in the place where the cursor was when clicking the toolbar option.

In IE 6 when clicking one of the toolbar options the iframe looses
focus and the desired formatting does not happen.

When I refresh the page in IE 6 I see a permission denied error when
the code tries document.open() on the iframe document. I don't know and
am curious why refreshing and the first load are different in this
situation.

Any info greatly appreciated.

Thank you,
Peter

Dec 20 '06 #1
2 2936
Peter Michaux wrote:
>
I took apart an existing wysiwyg editor to try to learn how they work
and some of the important issues. The following url has my current
version that seems to work in Safari 2 and Firefox 2. It partly works
in Opera 9 and doesn't work in Internet Explorer 6. This demo uses a
hidden iframe containing a document in design mode.

<URL: http://peter.michaux.ca/temp/rte/example.html>

In Opera 9 it is possible to select some of the wysiwyg text and click
one of the toolbar options (bold etc) and have the desired affect take
place. However when nothing is selected, clicking on a toolbar option
is different than in Safari and Firefox. The click makes the iframe
loose focus and the desired formatting does not occur when typing again
in the place where the cursor was when clicking the toolbar option.
I think Opera just has problems still. It behaves this way in every
demo I have tried.

In IE 6 when clicking one of the toolbar options the iframe looses
focus and the desired formatting does not happen.

When I refresh the page in IE 6 I see a permission denied error when
the code tries document.open() on the iframe document. I don't know and
am curious why refreshing and the first load are different in this
situation.
I'm not really sure why the following works in IE but it does.

<URL: http://peter.michaux.ca/temp/mozrte/index.html>

Peter

Dec 21 '06 #2
In comp.lang.javascript message
<11**********************@48g2000cwx.googlegroups. com>, Wed, 20 Dec 2006
12:25:46, Peter Michaux <pe**********@gmail.comwrote:
>
I took apart an existing wysiwyg editor to try to learn how they work
and some of the important issues. The following url has my current
version that seems to work in Safari 2 and Firefox 2. It partly works
in Opera 9 and doesn't work in Internet Explorer 6.
<URL:http://www.merlyn.demon.co.uk/js-demos.htm#WHEdis probably as
simple as a WYSIWYG HTML Editor can be, though it does not conform to
the usual expectation.

It's a good idea to read the newsgroup and its FAQ. See below.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Dec 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lb | last post by:
Hi I'm looking for a wysiwyg XSTL editor, that actually is wysiwyg. So far every product I have tried out seems to have the idea that wysiwyg is just showing the result of an XML - XSL...
0
by: Ellen Quaadgras | last post by:
Hi, We are have built an in-house content management system and are looking for a good WYSIWYG browser-based editor to use with it. Cost can be anywhere from free to $2000. Qualities we're...
3
by: Mel Smith | last post by:
HI Friends, I'm a newbie at html writing but am a computer programmer and use a great editor (The Semware Editor - TSE) for all my coding -- even building my own first web pages. I'd like...
14
by: Brandon | last post by:
I am an amateur working on a first site, I have settled on using FP 2002 for now. My current page is up and live, but I have two errors that I cant seem to get rid of ... Line 29, column 6:...
5
by: Arsalan | last post by:
How do they make WYSIWYG editor in the browser ? I've seen couple of website using them, but how do they make a WYSIWYG editor in the browser ?
12
by: Michael Peters | last post by:
für einen Enduser, der kein HTML kann und nur die Contents auf statischen Seiten ändern will, brauche ich einen einfach zu bedienenden WYSIWYG-Editor. Wäre dankbar für Empfehlungen! -m
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. &gt;strong&lt;...
1
by: Arjen | last post by:
Hi, Im trying to make / looking for a very very simple WYSIWYG editor. Ive made a (ad free) site about dogs but it's attracting way more visitors then I could ever have imagined. I have a forum...
27
by: prt7u | last post by:
Howdy, I've started back afte a very long time of working with web pages for an organization that I am affiliated with (personally not professionally). Seeing that technology has advanced a lot...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.