Solved

Multiple instance of a  Wysiwyg editor in one page

Posted on 2003-12-10
6
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 2

Accepted Solution

by:
Shattuc earned 200 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

691 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