View Full Version : Images not appearing in the editor
christine310921
01-27-2010, 10:12 AM
I have uploaded CMS to my server and have managed to login successfully so everything appears to be working okay. I have two questions:-
1. I have an existing site and want to add the editor to it. Would the best way to do this be to click on Source code and copy and paste that section as it appears in Dreamweaver?
2. Assuming that this would be the way to incorporate this into a current site I did that and found that the images would not display in the editor. The path to my images in the source code is src="images/welcome.gif". If I upload the image using the editor it appears so where exactly should I upload my images for them to be in the editor. I have over 200 images and do not want to have to click Insert Image in the editor for every one.
Be grateful for some help with this. Thanks,
Christine
Dani Chankhour
01-27-2010, 03:33 PM
There is two things that needs to be copied:
1. the include file (<?php require_once("../HTMLEditor/WARichEditorPHP.php"); ?>)
2. the editor source (<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../HTMLEditor/", "924px", "400px", "Custom", "../custom/contents_insert_ContentValue1.js", "".((isset($_SESSION["ContentValue"]))?$_SESSION["ContentValue"]:"") ."");
?>)
But in both cases you need to make sure that the reference to the files are correct.
christine310921
01-27-2010, 04:19 PM
Thanks for your response. I still have a couple of questions.
1. Presumably the include files you have are included at the very top of the document? Also I was a little unsure about what you meant about making sure that the reference to the files is correct. All of my files are in a folder in the root directory called CMS so would the following be correct as I am a beginner to PHP. I am unsure if I would need the ../ before the CMS/HTMLEditor etc..
<?php require_once("../CMS/HTMLEditor/WARichEditorPHP.php"); ?>
and
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../CMS/HTMLEditor/", "924px", "400px", "Custom", "../custom/contents_insert_ContentValue1.js", "".((isset($_SESSION["ContentValue"]))?$_SESSION["ContentValue"]:"") ."");
?>
2. I want my client to use styles I have set in the site css file so do I have to purchase the HTML editor to enable that to happen? It is about the one extension I don't have but I see I qualify for an upgrade at $24.95 However I don't want to buy it if it will not enable clients to use existing style sheets.
Thanks for any help you can give.
Christine
Dani Chankhour
01-27-2010, 05:55 PM
Yes, you need to purchase the HTMLEditor to add your styles to the styles drop down list of the HTMLEditor. And actually if you decided to purchase the HTMLEditor, then adding the Editor to a different page will become much easier, since you don't have to copy and past the code from page to page. But to answer your first question, the path you have specified seems to be correct assuming you have the HTMLEditor folder under the CMS filder.
christine310921
01-28-2010, 06:56 AM
Hi and thanks for your reply. I added the following code into the top of my document. All the site files on the server are in a public_html folder and the CMS files are in a folder in the public_html folder.
<?php require_once("../public_html/CMS/HTMLEditor/WARichEditorPHP.php"); ?>
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../public_html/CMS/HTMLEditor/", "924px", "400px", "Custom", "../custom/contents_insert_ContentValue1.js", "".((isset($_SESSION["ContentValue"]))?$_SESSION["ContentValue"]:"") ."");
?>
When I uploaded this I received the following message:-
Not Found
The requested URL /public_html/CMS/HTMLEditor/editor/fckeditor.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
However, underneath the error message the site displayed! I checked the file path and sure enough there is no fckeditor.html in the CMS folder. What can I do about this?
Another question I have is your comment "then adding the Editor to a different page will become much easier, since you don't have to copy and paste the code from page to page."
Could you elaborate on this further for me please. I think I am almost certainly going to buy the HTML Editor but would not know what to do with it when I do. Sorry if this is obvious to you but I am new to this. I would appreciate any further help on this.
Thanks........ Christine
christine310921
01-28-2010, 07:08 AM
There is a file named fckeditor.html in the following filepath
/public_html/CMS/HTMLEditor/editor/fckeditor.html
Still having the same error message as last post though
Thanks
Dani Chankhour
01-28-2010, 11:57 AM
Try changing the include to "../CMS" or just "CMS" for your include.
What i meant was that when you purchase the HTMLEditor, you can just add the HTMLEditor to other pages and it will automatically adjust the path accordingly. So if you wanted to add the HTMLEditor to myfile.php, then you just open the file in DW (in a site) and then choose Insert -> WebAssist > HTMLEditor -> Insert Editor, and then you choose the type of editor (with or with out upload) and then type the name of the editor and click OK, and the HTMLEditor will be added to your page.
christine310921
01-28-2010, 02:14 PM
I tried using ../CMS as below and got the same error message:-
<?php require_once("../CMS/HTMLEditor/WARichEditorPHP.php"); ?>
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../CMS/HTMLEditor/", "924px", "400px", "Custom", "../custom/contents_insert_ContentValue1.js", "".((isset($_SESSION["ContentValue"]))?$_SESSION["ContentValue"]:"") ."");
?>
so I tried this and got the editor above the page as per the attachment.
<?php require_once("CMS/HTMLEditor/WARichEditorPHP.php"); ?>
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "CMS/HTMLEditor/", "924px", "400px", "Custom", "../custom/contents_insert_ContentValue1.js", "".((isset($_SESSION["ContentValue"]))?$_SESSION["ContentValue"]:"") ."");
?>
Can you help?
Thanks for the info on the HTMLEditor. It sounds straightforward so I will purchase that tomorrow and come back to you if I have problems. I am stumped about these include files though so would appreciate your help with this.
Thanks
Dani Chankhour
01-28-2010, 04:27 PM
You should only place the include file at the top of the page:
<?php require_once("CMS/HTMLEditor/WARichEditorPHP.php"); ?>
but under the globals and connection include.
the other piece of code you would place inside the body tag of your page where you want the editor to show.
christine310921
01-29-2010, 07:03 AM
Hi again,
The home page now appears as it should now that I have removed the second piece of code. However I am totally confused about this HTML Editor. You say put the second piece of code where I want the editor to show. I thought the editor was the part of PowerCMS that clients can use to update their own sections of the site? Why would I want it to show on the page? Previously you had said that if I added the editor to my page it would update file paths automatically. That much I understood. I also understood that if I want my client to use my css I would need to purchase the editor which I am going to do today. I hope I am not confusing you here. Let me tell you what I want to do and perhaps you could outline the steps for me.
I have installed PowerCMS and it appears to be okay and I can login and start editing pages. Now I have a large site that I want to allow my client to edit parts of himself. What would be the quickest way to put Power CMS into the site. Do I have to copy and paste the code from DW to the editor having the editor on source code?
I appreciate we have been going back and forth but I just want to make sure I have things clear before I can hand off to the client. Inevitably he will have questions and I need to be able to answer them.
Many thanks
Dani Chankhour
01-29-2010, 10:57 AM
I have opened a support ticket to further assist you with your issue?
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.