I'm Fleuretta from Quebec and my english is not good.Excuse me.
When I make a preview, my quicktags disapear. I have the comment-quicktag-plus for my quicktag.
It's possible to do not disapear a quicktag when we preview the comment?
I cannot reproduce the problem: on my test install, comment-quicktags-plus works with the preview. What theme are you using?
To change the class of your button as you describe, add the following lines to the bottom of the plugin (or to the bottom of your theme's functions.php file):
Hi,
I'm Fleuretta from Quebec and my english is not good.Excuse me.
When I make a preview, my quicktags disapear. I have the comment-quicktag-plus for my quicktag.
It's possible to do not disapear a quicktag when we preview the comment?
For the button I have my class in my comments.php
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Envoyer le commentaire" class='bouton' onmouseover="this.className='bouton-on'" onmouseout="this.className='bouton-off'"/>I will like this class applied on your button (preview and post). How do make it?
Thank you and excuse me for my english.
Fleuretta,
I cannot reproduce the problem: on my test install, comment-quicktags-plus works with the preview. What theme are you using?
To change the class of your button as you describe, add the following lines to the bottom of the plugin (or to the bottom of your theme's functions.php file):
I think something wrong width the code for the button. I have put the code at the buttom of your pluggin and the code is write on my web page.
I have put the code at the end after the last lign code.
}add_filter('comment_is_preview', 'comment_is_preview');
?>
function fleuretta_button_class($b) {
$b['preview']['attribs']['value'] = 'Envoyer le commentaire';
$b['preview']['attribs']['class'] = 'bouton';
$b['preview']['attribs']['onmouseover'] = "this.className='bouton-on'";
$b['preview']['attribs']['onmouseout'] = "this.className='bouton-off'";
return $b;
}
add_filter('filosofo-comments-preview_input_array', 'fleuretta_button_class');
About the quicktags, when I click on previeuw the quicktaks disapear and reapear when the comment is post.
Thank you very much
?>needs to be at the very end, after everything else.It's works :o) but not for the button post.
The class is not applied for this button.
Why?
Thank you very much
Add after
$b['preview']['attribs']['onmouseout'] = "this.className='bouton-off'";the following:
It's works!
About my quicktags, sometimes they disapear and sometimes not.
But I think I will change this plugin because the underline don't work and insert image don't work too.
Thank you very much for your help.
I'm really very happy !
Hi,
I know why the quicktags disapear when I preview a comment.
When the people is not logged, the quicktags don't work well and the quicktags disapear when preview comment.
I don't why the quicktags disapear when preview and the quicktags don't work well but I found when
they disapear.
Excuse my english...I hope you understand me.
Bye
RSS feed for this topic
Reply
You must log in to post.