Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Visual Editor

Viewing 7 replies - 1 through 7 (of 7 total)

  • danbp
    Participant

    @danbp

    Not sure to understand your problem. Check this similar solution, may be it will work for you:

    bp_activity_filter_kses function


    bigkahunaburger
    Participant

    @bigkahunaburger

    @danbp Thanks for you quick reply.

    I don’t believe so.

    I want to set:

    'quicktags' => false

    Then set user_can_richedit to true:

    add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return true;' ) , 50 );

    So now only the “visual editor” tab will show and the “quicktags tab” will not. However I can not get the visual editor to work. It shows up fine, but the content is not getting submitted. I just get that no content alert (“Please enter some content to post.”) when hitting submit.


    bigkahunaburger
    Participant

    @bigkahunaburger

    The standard Activity form appears below the visual editor instead of being replaced by it.


    bigkahunaburger
    Participant

    @bigkahunaburger

    Here is my code:

    function bpfr_whats_new_tiny_editor() {
    wp_editor(
    	isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '',
    	'whats-new',
    	array(
    		'textarea_name' => 'whats-new',
    		'editor_class'  => 'whats-new-mce',
    		'editor_height' => 200,
    		'media_buttons' => false, 
    		'quicktags' => false,
    		'tinymce' => array(
    			'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo',
    			'toolbar2' => ''
    		)
    	)
    );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );
    <div id="whats-new-textarea">		
       <?php do_action( 'whats_new_textarea' ); ?>				
    </div>

    danbp
    Participant

    @danbp

    This trick doesn’t seem to work anymore !


    bigkahunaburger
    Participant

    @bigkahunaburger

    I know there have been some changes recently in the way the js mentions work, but after digging though the Trac I wasn’t able to find a solution or cause.


    bigkahunaburger
    Participant

    @bigkahunaburger

    @danbp So any guesses or dirty jokes?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar