close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on page load

Thread began 10/22/2009 7:28 am by mail361522 | Last modified 10/22/2009 6:53 pm by Jason Byrnes | 2931 views | 19 replies |

mail361522

Error on page load

Hi. I just purchased and installed HTMLEditor v 2.0.0. Seems fine. But when I installed it and tried it on one page, the page shows an error (when web browser loading it):

"Toolbar 'Custom' does not exist!"

I checked that the custom subdirectory (and all other files) exist at the web server and confirmed that the links seem correct. This is my code:

<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("text", "../HTMLEditor/", "400px", "200px", "Custom", "../custom/admin_Insert_text1.js", "");
?>

Please need help!!! Regards!

Sign in to reply to this post

neilo

That code looks correct, assuming your page containing the form resides inside a folder in your main site - i.e. not in the root directory, and all the files have been uploaded. Does it test OK in your local site?

Sign in to reply to this post

mail361522

Yes. I'm running the site locally as well (with IIS) everything works except HTML editor, so it should not be server related. I have retried creating a blank new site with just a simple form and still get this error.

Sign in to reply to this post

mail361522

This is my simple test page, very basic:

[code]
<?php require_once("HTMLEditor/WARichEditorPHP.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form action="testagain.php" method="post" enctype="multipart/form-data" id="form1">
<p>
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("text", "HTMLEditor/", "400px", "200px", "Custom", "../custom/test_text1.js", "");
?>
</p>
<p>
<input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>
</body>
</html>
[code]

Besides this file the only thing in the directory is the HTMLEditor folder unchanged. Error message is "Toolbar 'Custom' does not exist... Bad!!! Please Help Webassist!

Sign in to reply to this post

Jason ByrnesWebAssist

in the address bar, replace "filename.php" with "HTMLEditor/custom/test_text1.js"

in other words if you browse the page with the HTMLEditor instance to it at:
file.php


change it to:
test_text1.js


This should open the test_text1.js file in the browser.


If not, please check your site settings.

On the Local info tab, Is the Local Root Folder the same as the Testing Server Folder on the Testing Server Tab?

If they are different, In the Dreamweaver Files Window, select the HTMLEditor folder and click the blue up arrow to upload it to the testing server folder.

Sign in to reply to this post

mail361522

Yes, the custom *.js link opens up in the browser.

Yes, all site folders are the same, I did a very basic setup to make it easy to check!

Sign in to reply to this post

Jason ByrnesWebAssist

Please send a copy of the HTMLEditor/custom/test_text1.js file so I can examine it.

Sign in to reply to this post

mail361522

// Custom configuration for iRite
FCKConfig.XMLFullName = 'grundlaggande';
FCKConfig.XMLFileName = 'grundlaggande.xml';
FCKConfig.SkinPath = 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';

FCKConfig.AutoDetectLanguage = true;
FCKConfig.DefaultLanguage = 'default';

FCKConfig.StartupFocus = false;
FCKConfig.FullPage = false;

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_blank';

FCKConfig.ToolbarSets["Default"] = [
]; /* Toolbar end */

FCKConfig.ForceStrongEm = false;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'p';
FCKConfig.FillEmptyBlocks = true;
FCKConfig.FormatOutput = true;
FCKConfig.FormatSource = true;
FCKConfig.IncludeGreekEntities = false;
FCKConfig.IncludeLatinEntities = false;
FCKConfig.ProcessHTMLEntities = false;
FCKConfig.ProcessNumericEntities = false;
FCKConfig.AdditionalNumericEntities = '';
FCKConfig.ForcePasteAsPlainText = true;
FCKConfig.CleanWordKeepsStructure = false;


FCKConfig.EditorAreaCSS = ''; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = '';
FCKConfig.StylesXmlPath = ''; // relative to fckeditor/editor/fckeditor.html
FCKConfig.ManagerEnabled = false;
if (false) {FCKConfig.Plugins.Add('kfm');}

Sign in to reply to this post

Jason ByrnesWebAssist

here's the problem:


FCKConfig.ToolbarSets["Default"] = [
]; /* Toolbar end */





this should be something more like:
FCKConfig.ToolbarSets["Custom"] = [
['FitWindow'],
['TextColor','BGColor'],
['Anchor'],
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
]; /* Toolbar end */


try editing the HTMLEditor instance. Click the Customize button next to Editor Preset, go to the toolbar button and add the toolbars you wish to use.

Sign in to reply to this post

mail361522

But what I did was creating a new preset with the "preset manager" prior to adding the html-editor instance to the textarea. I have done NOTHING else. For me the reason to upgrade iRite was the ability to make easy presets as I usually have a lot of changes and a lot of editor instances. I don't want to make manual changes to scripts, otherwise I could just download FCKeditor for free and use it...

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...