Solved

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

Posted on 2008-10-24
2
1,379 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

757 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

24 Experts available now in Live!

Get 1:1 Help Now