[Answered ]-Open redirect page in new tab and reopen in the same tab on multiple redirects Django


Try using a Javascript onSubmit to open the appropriate preview page with window.open, passing a name as the second parameter. It does almost exactly that. (If you want to support having different preview tabs associated with different editing tabs, include something in the name based on a tab ID of some kind — maybe the article ID plus a random number, or something.)

You’ll have to also send the updated content into the server via AJAX.


Leave a comment