loading...

Disable Slack Desktop App's WYSIWYG editor

tdkn profile image Shun Tedokon ・1 min read

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
      });
    });
})();

Discussion

pic
Editor guide
Collapse
jdvivar profile image
Daniel Vivar

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

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
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
kgutwin profile image
Karl Gutwin

How does this work?

Collapse
nickytonline profile image
Nick Taylor (he/him)

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

Collapse
dserodio profile image
Daniel Serodio

Thank you! This WYSIWYG thing is very annoying