Solved

Multiple instance of a  Wysiwyg editor in one page

Posted on 2003-12-10
6
315 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
 

Expert Comment

by:jdewerth
ID: 9934042
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
YouTube Friendly Video Addresses 3 84
Question to locate the problem 18 82
Problem to picture file 3 68
Grunt Copy file to another destination. 1 17
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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.
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now