Suggest Entry - Plugin

Creating and modifying plugins.
Post Reply
ghostrider123
Posts: 1
Joined: Wed Jan 07, 2009 6:47 pm

Suggest Entry - Plugin

Post 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>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Suggest Entry - Plugin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply