Probem in aplying Semclarke editor in comment and new disqussion form
Hi i wanted to install SCEditor in my forums using my own plugin, but it show an error.
In my First klick it show "Body is required' and when i klicked again my comment is added but it show double form. check my pic below :
When i klick:
and when i klick again :
code i use : default.php<?php
if (!defined('APPLICATION')) exit();
$PluginInfo['SCE1']=array (
'Description' => 'SCEditor plugin',
'Version' => '0.1',
'Author' => 'Fs02',
'AuthorEmail' => 'Fs_02@mail.com',
'AuthorUrl' => 'http://igdev.tk',
);
class SCEPlugin extends Gdn_Plugin {
public function Base_Render_Before($Sender) {
$Config = Gdn::Factory(Gdn::AliasConfig);
$Config->Set('Garden.Html.SafeStyles', FALSE);
$Options = array('ie' => 'gt IE 6', 'notie' => TRUE);
$Sender->RemoveJsFile('jquery.autogrow.js');
$Sender->AddJsFile('/plugins/SCEditor/SCE/minified/jquery.sceditor.min.js');
$Sender->AddJsFile('/plugins/SCEditor/SCE/minified/jquery-1.7.2.min.js');
$Sender->AddCssFile('/plugins/SCEditor/SCE/jquery.sceditor.css');
$Sender->Head->AddString('
$(document).ready(function() {
$("textarea").sceditor({/* options here */});
});
');
}
public function Setup(){}
}
?>
link to SCEditor project : sceditor.samclarke.com/
Answers
why nobody see my post . . .
help me please !!!
your post has been seen. No one apparently knows how to solve the bug in integrating a program plugin written by a third party. Use the buttonbar plugin, if you are looking for a supported editor.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.