Support » Plugin: Re-add text underline and justify » Code source bouton from my ACF disapears

  • Resolved legraindeweb

    (@legraindeweb)



    Hello,

    Thanks for this usefull plugin.
    The plugin remove the code source bouton from my ACF fields
    Is there any way to prevent that ?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brice Capobianco

    (@brikou)

    Hi,
    Good question.
    I thought this button was removed from ACF. See https://support.advancedcustomfields.com/forums/topic/source-code-button-on-wysiwyg-editor-field/
    Which version of ACF are you using? The PRO one ?
    Best,

    Thanks for the quick answer.
    I am using the up to date free version, ie the 4.4.11
    I tested and i have the code source button available until i activate the new editor style in the settings.

    Any idea how to fix it ?
    Thanks

    Plugin Author Brice Capobianco

    (@brikou)

    Hi,
    Ok, since I’m using the pro version I did not notice that this button disappears.
    I was able to reproduce the bug so I worked on a quick fix.
    If you are able to edit the plugin, just go to line 193 of re-add-underline-justify.php and paste the following code:

    	//Fix for ACF code button
    	if ( in_array( 'code', $buttons_array ) ){
    		$mce_buttons_2[] = 'code';
    	}
    	return $mce_buttons_2;

    Do the same on line 244.
    I’ll update the plugin asap to include this fix for everyone.
    Best,

    It is working perfectly !

    Thanks a lot for your quick and efficient solution ^^

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code source bouton from my ACF disapears’ is closed to new replies.