Solved

Steps to Install Free Rich Text Editor ( http://freerichtexteditor.com/ )

Posted on 2008-10-24
2
1,380 Views
Last Modified: 2012-05-05
Hello Experts,

I am relatively new to JS and having troubles installing it to my VB6 page.

I included following JS files to the the page:

<script src="Includes/JS/freerte_v1/js/richtext.js" type="text/javascript" language="javascript"></script>
<script src="Includes/JS/freerte_v1/js/config.js" type="text/javascript" language="javascript"></script>

But this obviously is not enough.
I know the installation should be fairly simple, but there are no "step-by-step" instructions for making FreeRTE to work.

If someone have used it, please, tell me what else do I need to do to make it work?

Thanks in advance!
0
Comment
Question by:snarinsky
2 Comments
 
LVL 2

Accepted Solution

by:
Adel87 earned 500 total points
ID: 22802172
By locking at the demo in the site you provided, it seems there is a third line required to initializes the editor as the two lines you have entered only include the java scripts to the page :

<!-- Include the Free Rich Text Editor Runtime -->
<script src="/freerte/js/richtext.js" type="text/javascript" language="javascript"></script>
<!-- Include the Free Rich Text Editor Variables Page -->
<script src="/freerte/js/config.js" type="text/javascript" language="javascript"></script>
<!-- Initialise the editor -->
<script>
initRTE('<i>This is some <b>preloaded</b> content</i>', '/freerte/examples/example.css');
</script>

remember to change the path : "/freerte/js/" to the path you have the js files stored in.

Please let me know if you need further assistance.

Regards,
0
 

Author Comment

by:snarinsky
ID: 22812658
Thanks Adel87,

I already tried this, but RTE still wouldn't show up on my form for some reason.

I included all the JS files to my project and included them like this:

      <TD>
            <script src="Includes/JS/freerte/js/richtext.js" type="text/javascript" language="javascript"></script>
            <script src="Includes/JS/freerte/js/config.js" type="text/javascript" language="javascript"></script>
            <script>initRTE('<i>This is some <b>preloaded</b> content</i>', '/freerte/examples/example.css');</script>
      </TD>

I'm using Mozilla Web Developer Tools and it gives me an error: "initRTE is not defined". Does it mean it can't find "example.css"?

Will really appreciate any help.
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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 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

20 Experts available now in Live!

Get 1:1 Help Now