Adding Custom CSS Styles To Content Area
As a default the styles in the content area are RedText & Blue Text. I would like to attach the custom css text styles I'm using. I don't see a way to add that. How is this done?
As a default the styles in the content area are RedText & Blue Text. I would like to attach the custom css text styles I'm using. I don't see a way to add that. How is this done?
These are the basic styles that you will be limited to with the editor. If you have HTMLEditor then you could edit the instance on the update page or insert page to include your own custom css styles. To do this you would need to have HTMLEditor installed, then open up the content insert and update pages and edit the HTMLEditor instance that is on the page. In the interface choose to customize the editor, then go to the style tab to add in your styles. You select the css file with the styles then select from the available styles that appear in the list to set which ones will be selectable when you are using the editor.
I have HTML Editor and I've tried that. But when I use HTML Editor it screws things up and the content page doesn't work any more. I get errors.
When I try to do this I get this message first.
It appears that one of your server-side values is improperly coded. Please check this interface for inconsistencies.
Once I save the changes and reupload the whole HTMLEditor folder I get this error message:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/w/d/h/wdhobbs/html/HighPointArtsCouncil/admin/contents_update.php on line 298
This is the line of code that was created by HTMLEditor and found on line 298:
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../HTMLEditor/", "713px", "400px", "Custom", "../custom/contents_update_ContentValue1.php", "\".($totalRows_HistoryUpdate > 0)?((isset($_POST['ContentValue']) && $row_HistoryUpdate['HistoryValue'] != $_POST['ContentValue'])?$row_WADAContents['ContentValue']:$row_HistoryUpdate['HistoryValue']):$row_WADAContents['ContentValue'] .\"");
?>
I have talked with a colleague about this and there is a better way to do it. You should select the HTMLEditor instance on the page and delete it first, then add in a new one.
For the new one make sure to name it ContentValue. After you are configure it and create it you will need to update the last parameter for it. In the code view you should see the code that looks like this:
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../HTMLEditor/", "713px", "400px", "Custom", "../custom/contents_update_ContentValue1.php", "");
in this code replace the "" at the end with this:
"".($totalRows_HistoryUpdate > 0)?((isset($_POST['ContentValue']) && $row_HistoryUpdate['HistoryValue'] != $_POST['ContentValue'])?$row_WADAContents['ContentValue']:$row_HistoryUpdate['HistoryValue']):$row_WADAContents['ContentValue'] .""
This should get it working for you, let us know if you have any other problems with it.
If I understand what you're saying then my code should look like this.
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("ContentValue", "../HTMLEditor/", "713px", "400px", "Custom", "../custom/contents_update_ContentValue1.php", "".($totalRows_HistoryUpdate > 0)?((isset($_POST['ContentValue']) && $row_HistoryUpdate['HistoryValue'] != $_POST['ContentValue'])?$row_WADAContents['ContentValue']:$row_HistoryUpdate['HistoryValue']):$row_WADAContents['ContentValue'] ."");
?>
I don't get the same error but now I get an alert window that says:
Toolbar set "Custom" doesn't exist.
Hi Bill,
I think the easiest thing would be for you to return your HTMLEditor files to their original condition (replace your admin/contents_update.php and HTMLEditor/custom/contents_update_ContentValue1.php with two originals - attached in zip) and then follow the instructions HERE
This exact process works repeatedly for me.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.