close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

P tag

Thread began 5/22/2012 1:05 pm by nickj | Last modified 6/12/2012 12:33 pm by Jason Byrnes | 2469 views | 7 replies |

nickj

P tag

The kfm editor surrounds the output with paragraph tags which is not always desirable. Also the paste board (text area) is always white which discourages the use of white text which we sometimes need.

So two questions:

1. is there a way to have the html, produced by the editor not surrounded with a paragraph tag?

2. Is there a way to change the background color if the editors text window to another color? Perhaps by passing a color code in a session variable.

Sign in to reply to this post

Jason ByrnesWebAssist

1) in the HTML Editor code on your page, find the following line:

php:
$CKEditor_config["tabSpaces"] = 4;



and change it to:

php:
$CKEditor_config["tabSpaces"] = 4;

$CKEditor_config["enterMode"] = "CKEDITOR.ENTER_BR";




2) In the HTML Editor wizard, click the pencil icon next to the Editor Preset list to edit the preset, go to the Styles tab.

click the plus button to select a css style sheet, then change the body class to the class that you would like to use for body of the HTML editor window.

Sign in to reply to this post

nickj

KFM editor

Regarding the background color of the editor as well as the default font color.

On our card site the client picks a e-card template which has a colored background. Some of the backgrounds have dark colors so I would like to have the editor have the same color background and have a different font color if appropriate. I would like to set a session for the background color and a session for the font color the pass these to the style sheet which the editor will use!

Where is the editor style sheet?
Can the Style Sheet be updated via a session variable?

Sign in to reply to this post

Jason ByrnesWebAssist

this is not supported in HTML Editor, I think the best way to go about this is to create a unique page for each HTML Editor and set the background color statically, then include the HTML Editor instances as a Dynamic plugin using Framework builder, this way the session variable chooses which HTML Editor file to include.

Sign in to reply to this post

nickj

That's fine but where is the contents.css file called?

In my instance I have tried to calll a file called contentsGRAY.css but it still used contents.css
<?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".$_SESSION['tbody'] ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "webassist/ckeditor/";
$CKEditor_config["contentsCss"] = "contentsGRAY.css";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "No File Management no imgae (custom)";
$CKEditor_config["wa_preset_file"] = "(custom)";
$CKEditor_config["width"] = "450px";
$CKEditor_config["height"] = "200px";
$CKEditor_config["skin"] = "kama";
$CKEditor_config["uiColor"] = "#999999";
$CKEditor_config["docType"] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["contentsLanguage"] = "";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Source'),
array( 'Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker','Scayt'),
array( 'Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array( 'BidiLtr','BidiRtl'),
array( 'Bold','Italic','Underline','Strike','-'),
array( 'NumberedList','BulletedList','-','Outdent','Indent'),
array( 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array( 'Link','Unlink','Anchor'),
array( 'Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Maximize'),
array( 'Styles','Format','Font','FontSize'),
array( 'TextColor','BGColor'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor_config["stylesCombo_stylesSet"] = "my_styles:style_lists/stylelist1.js";
$CKEditor->editor("tbody", $CKEditor_initialValue, $CKEditor_config);
?>

thanks
nick

Sign in to reply to this post

Jason ByrnesWebAssist

the html editor code doesn't call the css file directly.

it populates the style select list using the style_lists/stylelist1.js file:

$CKEditor_config["stylesCombo_stylesSet"] = "my_styles:style_lists/stylelist1.js";

Sign in to reply to this post

nickj

I tried changing this file as well with no real effect. I think what we need to change the Automatic font color. The problemis that it has to be reflected in the html output which is stored in the DB.

Sign in to reply to this post

Jason ByrnesWebAssist

This will taker custom development to accomplish, HTML Editor does not offer support for dynamically setting the font color. I would suggest signing up for a premiere support appointment if you need assistance with creating this.

Sign in to reply to this post

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