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.

Comments

mtodor created an issue. See original summary.

mtodor’s picture

Status: Active » Needs review
StatusFileSize
new8.44 KB

Here is proposed solution.

mtodor’s picture

StatusFileSize
new8.76 KB
new3.01 KB

Adjusted 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.

  • chr.fritsch committed e5d8be5 on 8.x-1.x authored by mtodor
    Issue #2879457 by mtodor: Display in responsive preview unsaved article...
chr.fritsch’s picture

Status: Needs review » Fixed

Very nice

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.