DEV Community

Shun Tedokon
Shun Tedokon

Posted on

Disable Slack Desktop App's WYSIWYG editor

Run the following command in Terminal.

$ SLACK_DEVELOPER_MENU=true open -a /Applications/Slack.app

Then, Open the DevTools (cmd + opt + I), Run the following script in console.

(() => {
  slackDebug.clientStore.workspaces
    .getAllWorkspaces()
    .forEach((teamId) => {
      const { redux } = slackDebug[teamId];

      const {
        wysiwyg_composer,
        wysiwyg_composer_ios,
        wysiwyg_composer_webapp,
        ...payload
      } = redux.getState().experiments;

      redux.dispatch({
        type: "[19] Bulk add experiment assignments to redux",
        payload
      });
    });
})();

Top comments (8)

Collapse
 
jdvivar profile image
Daniel Vivar • • Edited

One liner to remove it from desktop app:

git clone https://github.com/kfahy/slack-disable-wysiwyg-bookmarklet && ./slack-disable-wysiwyg-bookmarklet/bin/patch-desktop-app && rm -rf slack-disable-wysiwyg-bookmarklet

It downloads with git, executes the patch, then removes whatever you downloaded with git. Clean and fast, takes about 10 seconds to patch.

Collapse
 
grantbirchmeier profile image
Grant Birchmeier • • Edited

Hm... didn't work for me.

Uncaught ReferenceError: slackDebug is not defined

I found this to work for me:
github.com/kfahy/slack-disable-wys...

Collapse
 
nickytonline profile image
Nick Taylor •

This worked for me, but it appears you need to do it anytime you open Slack.

Collapse
 
mbd profile image
Mark Dorset •

Thanks for this. If possible, could you share how to reset Slack back to wysiwyg mode?

Collapse
 
fbarrailla profile image
François Barrailla •

CMD + R do the trick for me :)

Collapse
 
fernandodev profile image
Fernando Martínez •

THANK YOU! ❤️

Collapse
 
dserodio profile image
Daniel Serodio •

Thank you! This WYSIWYG thing is very annoying

Collapse
 
kgutwin profile image
Karl Gutwin •

How does this work?