Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Tabs in editor

  • #10726
    Avatar photo[anonymous]

    Hi.

    I usually work in my Publii website needing to add or modify HTML and CSS. The problem is that is very tedious to edit HTML, save the post, go to the “Tools & plugin” menu, open Custom CSS, edit the CSS, preview and save, go again to posts, edit HTML… one time and another.

    Another time, I want to copy parts of code from one post to another. This implies to open the first post, go to HTML, copy the code, close the file, find the second post, open it, go to HTML, save it… one time and another, too.

    Would be very useful to open different posts in Tabs (like in web browsers) to copy between them, and include the custom CSS like another tab. It will hugely speed up the workflow.

    It’s possible? Or do you’ve a better idea?

    Thanks.

    #10736
    Avatar photo[anonymous]

    Hey wefer!

    [anonymous] wrote:

    I usually work in my Publii website needing to add or modify HTML and CSS. The problem is that is very tedious to edit HTML, save the post, go to the “Tools & plugin” menu, open Custom CSS, edit the CSS, preview and save, go again to posts, edit HTML… one time and another.

    I typically use my browser’s inspect tools in this case. When you go into Preview mode in your browser, open your Dev Tools / Inspect Tools, and make your modifications from there. Tweak and experiment with different options, and then once you’re settled, copy the change over to your Custom CSS or main.css file. I try to group my changes that way, and then every once in a while, I hit Preview again to make sure my latest changes were applied correctly before going back and doing it again.

    [anonymous] wrote:

    Another time, I want to copy parts of code from one post to another. This implies to open the first post, go to HTML, copy the code, close the file, find the second post, open it, go to HTML, save it… one time and another, too.

    Depending on the kind of code you’re copying over from post to post: it may be worth making it a permanent part of your post template by editing its .hbs file. In any case, I agree that Publii could benefit from tabs for post editing.

    #10738
    Avatar photo[anonymous]
    [anonymous] wrote:

    Hi.

    I usually work in my Publii website needing to add or modify HTML and CSS. The problem is that is very tedious to edit HTML, save the post, go to the “Tools & plugin” menu, open Custom CSS, edit the CSS, preview and save, go again to posts, edit HTML… one time and another.

    Another time, I want to copy parts of code from one post to another. This implies to open the first post, go to HTML, copy the code, close the file, find the second post, open it, go to HTML, save it… one time and another, too.

    Would be very useful to open different posts in Tabs (like in web browsers) to copy between them, and include the custom CSS like another tab. It will hugely speed up the workflow.

    It’s possible? Or do you’ve a better idea?

    Thanks.

    I was doing this all day long today.  I also used the inspect tool to make sure my ideas will work.  I also fire up VSCode and test there before trying the HTML and CSS in Publii.  Still I find I have to tweak it over and over to get it just right.

    So I second this idea – if anyone cares…

    #10926
    Avatar photo[anonymous]

    Hi,

    We have plans to add support for multiple windows in Publii (opening post editor in a new window) in one of the next releases. I suppose that we will try deliver this feature in Q1 2024.