Replies Back to Article
Installing The RTE Editor
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 ?
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?)
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!
I've got this error too.
DW MX French, WinXP, IE6
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?
I got this error too.
DW 4 UD / Win 2000 / Server -> IIS4
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 :)
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.
I'm still getting error at line 101 even with RTE v1.0.1!
- I installed the new RTE Editor version, 1.0.1
- Created a new asp/vbscript document
- Inserted the editor clicking at it's icon
- Saved the file as test.asp
- Went to http://localhost/test.asp
- "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?
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
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.
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
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
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.
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
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.
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 :)
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