close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerCMS with HTML Editor - Tutorial

Thread began 12/03/2009 12:34 am by anonymous | Last modified 12/07/2009 5:38 pm by anonymous | 6378 views | 14 replies |

anonymous

PowerCMS with HTML Editor - Tutorial

I posted this in the PowerCMS section, as well; but I wanted to let anyone who was looking for help with upgrading PowerCMS with the new HTML editor, I have created a tutorial on how to do this right here covering modification for both the insert and update pages, as well as, the minor addition needed to the advanced file manager to work correctly with SecurityAssist:

blog_detail.php?id=15

Best regards,

Brian

Sign in to reply to this post

neilo

Nice one Brian, many thanks for this.

Sign in to reply to this post

jebrandon343719

Update page not working

Hi, I followed your instructions, however my update page is missing the 'HTML Editor' toolbar ?? I am using the Default manager preset. I have uploaded all files in the HTMLEditor folder.
Insert page is okay, but update pages is not.

Sign in to reply to this post

anonymous

Did you try deleting the cache and doing a hard refresh of your browser? FCKeditor's tool bar does get cached so it could be an issue with your editor loading from cache.

Best regards,

Brian

Sign in to reply to this post

jebrandon343719

Still no joy!

Hi Brian, I did that, but it still is absent! The small arrow to toggle is there but no editor at all.
It is like it is 'hidden'.
If it helps, this is my code

$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../HTMLEditor/", "713px", "400px", "Default", "../custom/contents_update_ContentValue1.js", "".($totalRows_HistoryUpdate > 0)?$row_HistoryUpdate['HistoryValue']:($row_WADAContents['ContentValue']) ."");
?>

Sign in to reply to this post

anonymous

In your code for your instance... change "Default" to "Custom" so the editor knows to use the custom JS that is specified after it. If you have it set to default, it doesn't pull the JS correctly.

Let me know what happens when you look at it in dreamweaver and reload.

Regards,

Brian

Sign in to reply to this post

jebrandon343719

Custom doesnt exist

Did as you said. Re-loaded and I got a pop-up saying Toolbar 'custom' doesnt exist!!

Sign in to reply to this post

anonymous

That's strange... can you look in your folder "/HTMLeditor/custom/" and confirm that "contents_update_ContentValue1.js" exists? If it does, I am not sure why it would tell you that.

You may need to reopen in the HTMLEditor dialogue to see if something is wacky. I have, on occasion, experienced an issue where some of the customization I did disappeared.

Brian

Sign in to reply to this post

jebrandon343719

v wacky

Well that file exists. I re-opened the editor and changed toolbar to Basic - this worked - I got a toolbar. Problem is I wanted more than a basic toolbar. Any change I make in the HTML Editor fails - all except for selecting a 'basic' toolbar. I tried basic then added an option - goes back to 'Custom doesnt exist'. I have tried several senarious - the only time I get some joy is when I choose 'boring little Basic !!!!

Sign in to reply to this post

anonymous

There is something wacky going on there... let's try this... let me give you my js code to paste into that js file and give this a run... I created a js so that I could update the PowerCMS even before I deploy it so it would be exactly the same as the old PowerCMS toolbar but with the new HTML editor.

Open the file, "contents_update_ContentValue1.js", then get rid of everything in there and paste this to use instead:

// Custom configuration for iRite
FCKConfig.XMLFullName = '(custom)';
FCKConfig.XMLFileName = '(custom)';
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';

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

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

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_self';

FCKConfig.ToolbarSets["Custom"] = [ ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], '/', ['FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['FitWindow','-','About']]; /* Toolbar end */

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


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




Brian

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...