Basic real preview on the side of the edit window#697
Basic real preview on the side of the edit window#697rpeyron wants to merge 1 commit intojekyll:masterfrom
Conversation
|
Hello @rpeyron |
|
Hello @ashmaroli, thanks for your answer. The diff looks indeed huge, but there are not that many changes ; lots of lines marked as diff are actually indented lines due to nesting existing parts in a parent section.
Below is a list of major changes:
I guess the way I use to add/remove the preview class and modify the layout is not the best, and you may want to replace that by a more reactish way to do it. The number of changes may also be lowered by maybe creating a common component for xxEdit views. Please tell me if I can help with the edits to be done. |
|
@rpeyron On actually trying this out at my end, I would like to leave some suggestions / feedback. Feedback
Suggestions
|
|
@ashmaroli thanks for your suggestions
|
This PR adds a feature to get 'real' preview on the side of the editing window:
It simply embeds an iframe with the resulting page (as when you click on the view button). So it is a real preview, much more accurate than every WYSIWYG editors can get.
It adds a "Side preview button" that will show the preview on the side, and move side buttons to the bottom to have a larger edit space. You can close the preview and get the original layout back.
You can also force refresh the preview, but if you use the live reload feature of the jekyll live server, it will reload automatically (with a small delay depending on the speed of the page compilation).
I am aware this PR cannot be merged as is (notably because of deactivating tests, as it requires a lot of work to update) but let me know if you are interested in this feature and I may help to get something mergeable in the direction you want.