Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Editing the buttons in cleditor?

The cleditor does a great job formatting users comments and keeping things nice n simple. However it has WAY too many buttons, for example, ones for copy,paste and print are really not needed.

Is there any way to edit what buttons it uses to make is simpler and cleaner for users?

Best Answer

Answers

  • Can I bring this question back up? I'm confused as to your answer for this problem. I'm sure it's easy, only I am a newb.

  • I've found the following script in my default.php for cleditor, no clude even if I'm looking in the correct place, just based off of your previous answer.

    <script type="text/javascript"> jQuery(document).ready(function($) { // Make sure the removal of autogrow does not break anything jQuery.fn.autogrow = function(o) { return; } // Attach the editor to comment boxes jQuery("#Form_Body").livequery(function() { var frm = $(this).parents("div.CommentForm"); ed = jQuery(this).cleditor({width:"100%", height:"100%"})[0]; this.editor = ed; // Support other plugins! jQuery(frm).bind("clearCommentForm", {editor:ed}, function(e) { frm.find("textarea").hide(); e.data.editor.clear(); }); }); }); </script>');

  • vrijvlindervrijvlinder CSS Addict MVP

    The Buttons work using a sprite image, that means that the toolbar uses one image for all the buttons. If you were to disable a button/function from the jquery.cleditor.min.js you would also have to edit the toolbar image that has the rest of the buttons. If you don't wan't the full functionality of the cleditor, then just disable it in the dashboard and you will have a minimalistic Form.

    |̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅| - ☊ - ♫ ♪ ♪ ♫ ♩ ♬ ♬ ♮ ♯ ♫ ♪ ♪ ♫ ♩ ♬ ♭ ....... (•̪●)(•̪●)

  • @vrijvlinder Thanks, I'll give this a try, hopefully later today.

Sign In or Register to comment.