Problem/Motivation
It would nice to have option to see article in responsive preview before it's saved. For new article or for edited article. Currently it's not possible and responsive preview can display only saved articles.
Proposed resolution
It should be possible to use default node preview functionality. In order for responsive preview to work, article form should be submitted over AJAX request and in backend everything should be handled on same way as for normal preview -> where AJAX response will be normal preview URL that will be loaded in responsive preview. Then all changes that are visible in default preview will be visible in responsive preview too.
User interface changes
Responsive preview toolbar button will be now also available for new article creation form.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-2879457_3_2.txt | 3.01 KB | mtodor |
| #3 | 2879457_3.patch | 8.76 KB | mtodor |
| #2 | 2879457_2.patch | 8.44 KB | mtodor |
Comments
Comment #2
mtodor commentedHere is proposed solution.
Comment #3
mtodor commentedAdjusted patch to show errors. If there are errors -> default "Preview" will be triggered, that functionality will pick-up browser validation for required fields + page will be reloaded as on normal Preview request. That will display errors for form properly.
Comment #5
chr.fritschVery nice