Replies Back to Article

Installing The RTE Editor

Jscript error
July 5, 2002 by Arnaud VATEL

I installed the RTE editor but I got a jscript error on line 101.
It must be something related to the font toolbar : the labels don't display correctly (@{style}, @{font}, @{size},...)

Does this mean anything to you ?

RE: Jscript error
July 5, 2002 by Greg Olone

Arnaud-

We haven't had any trouble with this extension. Can you tell me if you are using UD4 or DWMX? and on which platform (Mac or PC?)

RE: RE: Jscript error
July 5, 2002 by Arnaud VATEL
Sure.
I'm using UD4 on Windows 2000.
RE: RE: RE: Jscript error
July 6, 2002 by Werner BH

I also got a jscript error at line 101, char 3:
'undefined' is null or not an object

BTW the form works fine for inserting and editing records, this extension is awesome!

RE: RE: RE: RE: Jscript error
July 6, 2002 by Werner BH
And I'm using Win XP pro + DWMX, IE 6.
RE: RE: RE: RE: Jscript error
July 10, 2002 by pyg pyg

I've got this error too.

DW MX French, WinXP, IE6

RE: RE: Jscript error
July 10, 2002 by Richard Apperly

I get the error too!

BTW, what page does it edit? If I have a page that already has content on it, how do I make the edit page load that page up?

And also, does this support CSS?

 

RE: RE: RE: RE: RE: Jscript error
July 11, 2002 by fabian bill

I got this error too.

DW 4 UD / Win 2000 / Server -> IIS4

I got it to work!
July 13, 2002 by Sherwin Nelson

Ok,

I finally got the RTE to function. Whe I first down loaded the ext. why was'nt able to focus the text area: Overlooked the fact that It only works in IE5.5+.

So that taken care of, I decided to see what it can do for me: Notes: You can save a whole deal of time by first doing your table layout design in ultra dev, (I did 15 so far only took about 35 minutes) cut and paste all my html into an access PromolayoutTbl, (memo field) created a recordset -rsPromoComposer- and binded the memo field that I saved the layout designs in to the textarea on the page with the RTE. NB When I used the table layout that came with the RTE, it was a bit tedious having to go back and forth in the code to do bgColor, vAlign, etc.. I also had to set a width for the text area because when you typed som text in it was automatically wraping the text to the size of the aleged textarea.(and dont use a percent or auto CSS to fix width) I guess the check spelling does'nt work, oh yeah what about that new mail button, like the one at sourceforge.net. Anyways I'll be able to  select  from any one of my Layouts I designed, get it prepd for mailing, and submit it to my PromotionalTBl. Next step.. Send HTML Mail Beta.

Keep up the good work every one.

The Questions And The Answers :)

RE: RE: RE: Jscript error
July 13, 2002 by Sherwin Nelson

Check the Form Name = "theForm" When I installed mine (thrice) the form is loaded with the Form Name = 'RTEform" the richedit.html page is looking for "theForm"

Cut and paste your HTML into a memo Access Field and bind that field to the textarea in the RTE. It will be displayed in the RTE ready for editing.

RE: RE: RE: RE: Jscript error
July 13, 2002 by Bill Chalmers
Thanks for pointing this out Maurizia, In my eagerness to fix the form name for the tutorial on Insert / Update I was writing, I didn't test it properly, I have now fixed it and the extension should insert the correct form name now, I uploaded it today
Help!
July 13, 2002 by Werner BH

I'm still getting error at line 101 even with RTE v1.0.1!

  1. I installed the new RTE Editor version, 1.0.1
  2. Created a new asp/vbscript document
  3. Inserted the editor clicking at it's icon
  4. Saved the file as test.asp
  5. Went to http://localhost/test.asp
  6. "An error has occurred in the script on this page" Line: 101 / Char:3 / Error: 'undefined' is null or not an object / Code: 0 / URL: http://localhost/RTE_files/richedit.html

Am I doing something wrong?

Errors
July 18, 2002 by Peter Elkjaer

I also get the error described by others, and it crashes MX running on XP pro all the time.

I also can't see the point in running the editor through  Active X.

Peter Elkjær

RE: Errors
July 18, 2002 by Bill Chalmers

I am still trying to find the error at line 101, I cant seem to reproduce it, I think it happens as part of the Initialization function of the editor.

As for activex, the editor is written in pure DHTML utilizing IE specific commands, fundamentally the contenteditable attribute, take a look at the DHTML section on MSDN for more info.

RE: RE: Jscript error
July 18, 2002 by Greg Olone

OK Guys...my install is obviously a fluke. I'm going to install it on some more configurations and see if I can replicate your errors.

Greg

I also get this error
July 19, 2002 by aron palmer

and it also crashes my DMX   i played arund with the one from sorceforge it dosent have the error but some parts in it also dont work

 

also what would be great is if it had a a thumbnail view of he image in the image insert part

RE: RE: Errors
July 19, 2002 by Peter Elkjaer

Hi Bill.

Again to the Active X, I still don't see why it is threre. I am quite familiar with ms dhtml editing component, and as I see it, the active x just makes the editor less "user-friendly" - because not everyone has the plugin in their browser.

About the 101 line error, you could try to put in an alert("Initierer"); to the function you suspect is wrong.

Like this

theFunctions() {
alert("is it handled?");

Peter.

RE: RE: RE: Errors
July 19, 2002 by Bill Chalmers
Although it appears that the RTE editor uses activex, it in fact all DHTML, no plugin is required.
dRE: RE: RE: RE: Errors
July 20, 2002 by Peter Elkjaer

As far as I know, that is not correct. There are two versions of the ms editing component - one which uses javascript only (execCommand and designMode), and one which starts the users activex.

This editor unfortunaly uses the activex which in many cases produces error messages - just as this one. Also it requires the users security settings to allow activex. Another minus.

Although this is a nice editor, I still prefer the pd editor or a modified version of massimos xhtml editor.

Peter

RE: dRE: RE: RE: RE: Errors
July 20, 2002 by Bill Chalmers

I'm afraid you are mistaken, this is a javascript only version of an editor which uses the execcommand and other DHTML specific commands to execute functions against text in a contenteditable area, the code to implement the editor is as follows:

<object id="richedit" data="RTE_files/richedit.html" width="100%" height="100%" type="text/x-scriptlet" viewastext"viewastext">
</object>

-->>>TYPE= "TEXT/X-SCRIPLET"<<<---

The activeX editors that utilize the DHTML editing component use different commands. To implement an activeX version of this type of editor would have been very easy as you can download a fully functional activex type editor from microsoft's site, this is more functional than the non-activex versions, but gives a security warning about activex, UNLIKE the RTE editor, which doesn't, if you are referring to the error on line 101, this is a bug and I am trying to fix it, this has nothing to do with activex, this editor uses the same commands that the PD editor does, take a look at the code of both and you will see that they are similar.

Part of the development of the RTE editor is to try and convert the features that are activex specific to DHTML and utilize them in this version of the editor which is the plain DHTML/JAVASCRIPT version. 

RE: RE: dRE: RE: RE: RE: Errors
July 21, 2002 by Peter Elkjaer

Bill - you're right.

I just asumed wrong when seeing the

<object id="richedit" data="RTE_files/richedit.html" width="100%" height="100%" type="text/x-scriptlet" viewastext"viewastext">
</object>

I am sorry :)

RE: RE: RE: dRE: RE: RE: RE: Errors
July 21, 2002 by Bill Chalmers
No Problem, if nothing else, this shows we are both passionate about this type of editor.
ERROR LINE 101
July 21, 2002 by Bill Chalmers
I know what the error is on line 101 thanks to Werner, this is an error if your language is set to anything other than english in the control panel regional settings, know I know what it is, I can fix it.
problem with removing a link
January 6, 2003 by P Phréque

Hi Bill,

Removing links doesn't work. So I came up with another way to do this.

function link(on)
{
   if (!RichEditor.txtView) return;      // Disabled in View Source mode

   var strURL = "http://";
   var strText;

   // First, pick up the current selection.
   doc.focus();
   var r = document.selection.createRange();
   var el = r.parentElement();

   // Is this aready a link?
   if (el && el.nodeName == "A") {
      r.moveToElementText(el);
      if (!on) {      // If removing the link, then replace all with
         r.execCommand("Unlink");
         return;
      }
      strURL = el.href;
   }

Greetz Phréque

Getting sytex Error!
April 14, 2005 by Dayze Day
I am getting a sytex error line 1 ch 2. how do I fix it this is something I really really want to use.