How to set default open tab in path selector modal window

Andrew Huchko asked on April 4, 2017 16:53

When I press select on Path selector form control, I redirected to tab, which I used last time for selection.

I want to set some default tab for selection, not my last selection tab.

There are three tabs: content, media, web.

I created copy of path selection form control and tried to add query parameter like : tab=web

It doesn't work.

I have read some documentation about that : - I read that :

The dialog remembers the selection setup on last insertion for each user. This means that when a user opens the Insert image or media or Insert link dialog, all of the following are in the same state as on last insertion:

• selected tab • selected view mode

Is it possible to set some default tab for this modal dialog?

I rewrote user settings and it doesn't help me.

Recent Answers

Trevor Fayas answered on April 4, 2017 17:36

Pretty much anything is possible. Taking a look, when i hit the button, it brings up a Modal with this url:

After making a default selection of Media Libraries, i close, then re-open to a modal of this url

Notice the tab and the hash are different.

The hash i believe is part of the Modal UI class, i looked into at one point, and i believe it's a hash of all the parameters for security purposes. You may be able to look into how it's calling the Modal and set the tab...but it will definitely be a challenge!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.