Home Forums Backend Issues (wp-admin) User color picker to change WYSIWYG editor color?


User color picker to change WYSIWYG editor color?

  • I’m using the color picker to choose a background color for a block of text. I want to have a dark background with white text. However, white text color isn’t readable on the white WYSIWYG editor background.

    I want to use javascript to change the background of the visual editor to the chosen color, so I can read the white text while editing my content.

    I’m not sure where to start with this. Any info to point me in right direction would be helpful, thank you!

  • Hi @hbroccoli,

    Thanks for the post.

    To customize the acf WYSIWYG settings, you will need to hook into either the wysiwyg_tinymce_settings filter or the wysiwyg_quicktags_settings filter.

    For more info on adding custom JS to fields, please refer to this topic:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.