[tw5] How to make the tiddler max width and enable the preview mode automatic when I edit the tiddler?

I try to search the event in tiddlywiki about edit event catcher, but I can’t find it.

As the title said I need maximize the width of the current edit tiddler and enable the preview panel automatically, where should I start to make this plugin or feature?