?
Solved

Multiple instance of a  Wysiwyg editor in one page

Posted on 2003-12-10
6
Medium Priority
?
329 Views
Last Modified: 2013-12-16
Greetings all,

i tried a lot but can't figure out how is it possible to have 2 or more instance of a wysiwyg editor in one page. I have written a correct code with only 1 wysiwyg editor, then i changed only variable name so it will be different from an editor to another ... but still not wrking ... any idea, or solution from the web ?

Thanks for any help ... :)

<html>
...
<form >
...
<!-- WYSIWYG Editor 1-->
<html>
....
</html>
<!-- /WYSIWYG Editor 1-->
...
<!-- WYSIWYG Editor 2-->
<html>
...
</html>
<!-- /WYSIWYG Editor 2-->

</form >
0
Comment
Question by:Hatemben
  • 2
  • 2
  • 2
6 Comments
 

Expert Comment

by:jdewerth
ID: 9934040
you didn't mention language but I'm assuming VB

try this page it gives all types of info on multiple inststances
0
 
LVL 2

Author Comment

by:Hatemben
ID: 9934169
It's not problem of language, u can check any WYSIWYG editor for ie, it's all written in JS. i've read that webpage, but don't see in what that could be usefull ...

Thanks anyway :)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
Shattuc earned 400 total points
ID: 11746383
Once you close the <html>tag, the browser doesn't go hunting for another one to open. that is the only problem with your code.
Browser opens, finds <html> processes everything from that point forward.
and If I remember correctly, you can forget to close the <html> tag, and it still doesn't care. but once you close it, it stops processing after that.

instead of using multiple instances of <html>
use a <table> instead.

so like this

<html>
<head><title>multiple wisiwyg</title>
</head>
<body>
<table>
<tr>
<td>wysiwyg 1 code</td>
<td>wysiwyg 1 code</td>
</tr>
</table>
</body>
</html>

you can just keep pasting the html for the wysiwyg editor in every <td> you make.

with this layout you could put in as many as you wanted till you ran out of memory and windows threw a BSOD at you (Blue Screen Of Death).

0
 
LVL 2

Expert Comment

by:Shattuc
ID: 11746392
and you don't need to change the code name, it will load one as many times as you want, provided you open and close all your tags properly, remember, Nesting, not overlapping.
0
 
LVL 2

Author Comment

by:Hatemben
ID: 11782379
It should be different names coz i'm using id as reference for each menu, anyway i think this thread have to be closed. I'll just give pts to Shattuc.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question