Page 1 of 1

Suggest Entry - Plugin

Posted: Wed Jan 07, 2009 6:52 pm
by ghostrider123
Hi, i have a problem with the suggest entry plugin.

The problem is, that the editor in the suggest entry plugin only has those 2 buttons: "Url" and bold font. But I want all features from the "normal" editor in it. I found out that the functions are stored in 'suggest.js', but not were they are executed.

So I'd like to know were these lines are stored:
<script type="text/javascript">
document.write('<div class="toolbar">');
document.write('<input type="button" class="serendipityPrettyButton" name="insB" value="B" accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.getElementById(\'serendipity_suggest_article\'), \'<strong>\', \'</strong>\')" />');
document.write('<input type="button" class="serendipityPrettyButton" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.getElementById(\'serendipity_suggest_article\'))" />');
document.write('</div>');
</script>

Re: Suggest Entry - Plugin

Posted: Wed Jan 07, 2009 7:11 pm
by garvinhicking
Hi!

That code is emitted by the plugin_suggest.tpl file itself. You should be able to put any WYSIWYG component like htmlarea or xinha into there. The tpl file can be put into your template directory, then you can have your custom version without needing to change any code of the official plugin.

Regards,
Garvin