Any reason why HTML Editor has stopped inserting HTML tags?
Was having a problem whereby instead of inserting P tags, HTML Editor was inserting BR tags so, after looking through some other posts on here, edited this in config.js...
config.enterMode = CKEDITOR.ENTER_BR;
config.allowedContent = true;
config.autoParagraph = false;
...to this...
config.enterMode = CKEDITOR.ENTER_P;
config.allowedContent = true;
config.autoParagraph = false;
I also tried chaning config.autoParagraph = false; to true, but that didn't do anything either.
Now, my HTML Editor has flat out stopped entering any HTML tags.
Here it is on the page...
<?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".(ValidatedField("addnews_784","newsTEXT",false)) ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "NJpageeditor";
$CKEditor_config["wa_preset_file"] = "NJpageeditor.xml";
$CKEditor_config["width"] = "100%";
$CKEditor_config["height"] = "400px";
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\" \\\"http://www.w3.org/TR/html4/loose.dtd\\\">";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Bold','Italic','Underline'),
array( 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array( 'NumberedList','BulletedList','-','Outdent','Indent'),
array( 'Format'),
array( 'FontSize'),
array( 'TextColor'),
array( 'Link','Unlink'));
$CKEditor_config["scayt_autoStartup"] = true;
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["forcePasteAsPlainText"] = true;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor_config["contentsCss"] = array("../css/advancedHTML.css");
$CKEditor->editor("newsTEXT", $CKEditor_initialValue, $CKEditor_config);
?>
I'm sure this is an easy fix, but nothing I've tried has worked and I'm not even sure why it has stopped entering HTML tags anyway.
Hope you can help. Thank you.
Regards
NJ