htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
where should i put editor_url


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


pacha
New User

May 24, 2004, 1:28 PM

Post #1 of 9 (5124 views)
Shortcut
where should i put editor_url Can't Post

where in this code should i put the editor url :

if (typeof _editor_url == "string") {
// Leave exactly one backslash at the end of _editor_url
_editor_url = _editor_url.replace(/\x2f*$/, '/');
} else {
alert("WARNING: _editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail.");
_editor_url = '';
}



many thanks


mednice
Novice

May 24, 2004, 4:21 PM

Post #2 of 9 (5111 views)
Shortcut
Re: [pacha] where should i put editor_url [In reply to] Can't Post

I have the same problem unfortunately. I went back to 2.3Unsure


nikotto
User

May 25, 2004, 12:54 AM

Post #3 of 9 (5101 views)
Shortcut
Re: [pacha] where should i put editor_url [In reply to] Can't Post

do NOT touch htmlarea.js anywhere!
just look at the examples and/or the documendation and you will see how you can configure htmlarea withouth even opening htmlarea.js

(you only will run into troble if you want to upgrade sometime to a new version)


mednice
Novice

May 25, 2004, 5:39 AM

Post #4 of 9 (5097 views)
Shortcut
Re: [nikotto] where should i put editor_url [In reply to] Can't Post

I followed the instructions as best I could. This is what appears in between <head> and </head>:

<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>
<script type="text/javascript" src="/htmlarea/dialog.js"></script>
<script type="text/javascript" src="/htmlarea/lang/en.js"></script>
<style type="text/css">@import url(/htmlarea/htmlarea.css)</style>
<script type="text/javascript" defer="1">
HTMLArea.replace("texte_area");
</script>


And I put the corresponding script right after the textarea. But in IE I get a partial toolbar (no clickable images, but the toolbar is there) and an editor_url message error in Mozilla.

What to do about this?



Thanks (sorry for squatting someone else's topic, but it is the same subject matter.)


nikotto
User

May 25, 2004, 6:29 AM

Post #5 of 9 (5096 views)
Shortcut
Re: [mednice] where should i put editor_url [In reply to] Can't Post

did you really look at the examples????
core.html:

<script type="text/javascript">
_editor_url = "../";
_editor_lang = "en";
</script>


and nowhere dialog.js or en.js or htmlarea.css (these will be included by htmlarea.js

make copy&paste, its not that difficult!


mednice
Novice

May 25, 2004, 9:48 AM

Post #6 of 9 (5086 views)
Shortcut
Re: [nikotto] where should i put editor_url [In reply to] Can't Post

No need to be rude. I DID read the reference.html! And I did view the source on the examples. But the version I downloaded from your site is the 3.0 beta. Now I've got the 3.0 RC1 and hopefully that will work with its reference.html (which correspond to the lines you posted above.)

Cheers!


(This post was edited by mednice on May 25, 2004, 9:54 AM)


Whyatt Thrash
Novice

May 25, 2004, 9:56 AM

Post #7 of 9 (5084 views)
Shortcut
Re: [mednice] where should i put editor_url [In reply to] Can't Post

Um, maybe you should specify which version you're trying to implement. The documentation for 3.0 says this:


Code
Once htmlArea is on your website all you need to do is add some JavaScript to any pages that you want to add WYSIWYG editors to. Here's how to do that. 

1. Define some global variables. "_editor_url" has to be the absolute URL where HTMLArea resides within your website; as we discussed, this would be /htmlarea/. "_editor_lang" must be the language code in which you want HTMLArea to appear. This defaults to "en" (English); for a list of supported languages, please look into the "lang" subdirectory in the distribution.

<script type="text/javascript">
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>

2. Include the "htmlarea.js" script:

<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>

3. If you want to change all your <textarea>-s into HTMLArea-s then you can use the simplest way to create HTMLArea:

<script type="text/javascript" defer="1">
HTMLArea.replaceAll();
</script>


So basically this is all you need to add to include the files you were talking about. then htmlarea.js will take care of the rest:


Code
<script type="text/javascript"> 
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>


Cheers! :)


mycs
Novice

Sep 28, 2004, 12:38 PM

Post #8 of 9 (4644 views)
Shortcut
Re: [Whyatt Thrash] where should i put editor_url [In reply to] Can't Post

Hi,

I download the revision 1.95 from the cvs page and i don't know what shold i put in the _editor_url, you wrote "where the html resides", you mean the htmlarea.js? cause i have the htmlarea.js into a folder named js, and i have the images into a folder named images.

I would appreciate your help.

Regards

mycs


escv123
New User

Dec 27, 2004, 7:36 PM

Post #9 of 9 (4423 views)
Shortcut
Re: [Whyatt Thrash] where should i put editor_url [In reply to] Can't Post


In Reply To
Um, maybe you should specify which version you're trying to implement. The documentation for 3.0 says this:


Code
Once htmlArea is on your website all you need to do is add some JavaScript to any pages that you want to add WYSIWYG editors to. Here's how to do that. 

1. Define some global variables. "_editor_url" has to be the absolute URL where HTMLArea resides within your website; as we discussed, this would be �/htmlarea/�. "_editor_lang" must be the language code in which you want HTMLArea to appear. This defaults to "en" (English); for a list of supported languages, please look into the "lang" subdirectory in the distribution.

<script type="text/javascript">
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>

2. Include the "htmlarea.js" script:

<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>

3. If you want to change all your <textarea>-s into HTMLArea-s then you can use the simplest way to create HTMLArea:

<script type="text/javascript" defer="1">
HTMLArea.replaceAll();
</script>


So basically this is all you need to add to include the files you were talking about. then htmlarea.js will take care of the rest:


Code
<script type="text/javascript"> 
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>


Cheers! :)


OK ... I've done exactly this and still get the same error message

Quote
_editor_url not set! ...


Here is a copy of what I have between the <HEAD> tags. html area is installed at the root of my hosting account: /home/site1/public_html/htmlarea/


Code
<head> 
<title>Administration Menu</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">

<LINK REL="StyleSheet" HREF="style/admin_style.css" TYPE="text/css">

<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<script language="JavaScript">
<script type="text/javascript">
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>
</head>
<body onload="initEditor()">


Any help would be greatly appreciated.

 
 
 


Search for (options)