Print Page | Close Window

Different RTE-functions at same site

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13491
Printed Date: 29 March 2026 at 2:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Different RTE-functions at same site
Posted By: woodlander
Subject: Different RTE-functions at same site
Date Posted: 24 January 2005 at 4:01pm

I'm currently implementing the RTE to a web site I'm working on. The RTE will be used in more than one location/page on my site and here's my problem.

I want to use different sets of functions depending on which page the RTE is on. E.g. on one page users can upload files, on another page (depending on type of user) file uploading should not be available among other functions.
 
How can I accomplish that since there's only one setup file that sets the functions by constant variables. I tried to make the constants regular variables by dim and then declaring each variable on each page using the RTE, but did not succeed.  Is there a way to have multiple setup-files?
 
Any help is much appriciated. Smile
 
Update: I'm using the new 3.0 beta



Replies:
Posted By: WebWiz-Bruce
Date Posted: 25 January 2005 at 6:06am
The simplest way is to install the RTE more than once.

Another way is to use mutiple setup files:-

  1. Make a secound copy of the file 'inlcudes/RTE_setup.asp' and the file 'RTE_editor_inc.asp'.
  2. In the new copy of 'RTE_editor_inc.asp' change the path to the include file to point to the new copy of the file 'inlcudes/RTE_setup.asp'
  3. For your secound RTE point it to the new RTE_editor_inc.asp' file
You should now beable to edit your new 'inlcudes/RTE_setup.asp' file to make the secound RTE different. You can repeat this procedure as many times as you require.

However, please note that you can only have 1 RTE per page and that the RTE files need to be in the same directory as the page you are including it in, otherwise their will be problems with things like paths to images etc.




-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: woodlander
Date Posted: 26 January 2005 at 11:03am

The simple way isn't a choice since that requires multiple files and a complex file structure.

The "multiple setup files"-solution did not work. The second RTE still is affected by the original RTE_setup.asp Maybe there needs to be additional copys of other files?
 
I really want this to work since the second RTE is going to be used by users with limited access. A stripped RTE will be used for them.


Posted By: woodlander
Date Posted: 26 January 2005 at 11:26am
I found the solution myself. Smile
 
The RTE_setup is included more than one file, hence there are more files who needs to be copied and then refered to.
  • RTE_javascript.asp
  • RTE_javascript_common.asp
  • non_RTE_javascript.asp
There are other files where RTE_setup is included but I found out that only these three files need to be copied and refered to in the RTE_editor_inc.asp copy.


Posted By: woodlander
Date Posted: 28 January 2005 at 5:58am
Originally posted by -boRg- -boRg- wrote:

However, please note that you can only have 1 RTE per page and that the RTE files need to be in the same directory as the page you are including it in, otherwise their will be problems with things like paths to images etc.
 
Is there a way to make it possible to have more than one instance of the RTE per page or is it a functionality you might implement in future releases?


Posted By: WebWiz-Bruce
Date Posted: 28 January 2005 at 7:42am
I spent many an hour, probally days, trying to make it so that mutiple RTE's can be placed on each page, but ran into to many problems.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net