Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
505 stars 203 forks source link

Improve the editor for iOS #23

Open claviska opened 7 years ago

claviska commented 7 years ago

Fixed

Needs Third Party Fix

claviska commented 7 years ago

I just launched a small funding blitz so I can finally nail down proper iOS support.

Please contribute if you can: paypal.me/abeautifulsite

ReinerKnudsen commented 7 years ago

done.

Now I need to get my postleaf running again. It is down with a 502 Bad gateway after the latest update.

claviska commented 7 years ago

Thanks! ๐Ÿ™Œ

Feel free to jump on the dev chat and I'll try to troubleshoot with you. My guess is the .env file though. Compare it to the latest version since certain settings were moved there.

claviska commented 7 years ago

We're all funded and an iPad has been procured! A very special thanks to everyone that helped make this possible. ๐Ÿ™Œ

Now, I have some good news to share:

My wife and I are expecting a baby any day now. This is obviously very awesome, but it's also a stressful time and will require a lot of attention from both of us.

That said, it's going to take a little extra time to tackle this. I'm still going to be active here, on the forum, and on the chat, but I won't have as much time for development as I normally do.

This doesn't mean I've forgotten about iOS support or other open issues. ๐Ÿ˜„

In the meantime, I've finished up the docs (except for the API stuff). You can do everything from installing and updating to building a complete theme.

As usual, I'll be around online to answer any questions or help you out if you get stuck.

Thanks again, and thanks for your patience as our family gets a little bigger. ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ

claviska commented 7 years ago

I experimented with this quite a bit today. It appears that TinyMCE, CKEditor, and contentEditable in general perform better (and behave more correctly) when they're NOT rendered inside an iframe in mobile Safari.

I think the next step is to ditch the iframe and see how the editor performs without it. I've tested demos of TinyMCE, CKEditor, and raw contentEditable regions and haven't noticed most of the aforementioned issues. ๐Ÿค”

claviska commented 7 years ago

Tonight I confirmed that ditching the iframe does indeed make the editor behave correctly in iOS. I suspect other mobile platforms may have similar issues with performance and scrolling, but can't verify that myself.

To proceed, the new challenge is to include admin-specific styles for panels, the file manager, etc. in such way that they don't clash with the themes styles. At least we know that good support for iOS is possible, at least it seems.

claviska commented 7 years ago

Progress! I was able to knock out some of the most annoying issues tonight. ๐Ÿ’ช

Looks like I'll be able to stick with the iframe approach after all. IMO, it's the cleanest way to render the page in the editor since it doesn't require embedding tons of admin HTML/CSS/JS into the actual post.

There are a few more items left on the list (and bound to be more that come up), but I'm finally feeling really confident about making Postleaf work really well on iOS. ๐Ÿ˜Š

claviska commented 7 years ago

Alright folks. I've narrowed down the remaining issues to reproducible bugs in TinyMCE and Webkit. I've filed two new bug reports and supported another existing bug report by producing a test case for it.

Postleaf's editor is very much usable now in iOS, even on iPhones. Of course, screen real estate on a phone is rather limiting, but it works well for minor changes. I suspect most people on iPhones will be using Quick Post anyway, or only making basic edits such as correcting typos.

What these bugs will fix:

Unfortunately, all the remaining issues aren't something I can work around, so I'm going to diligently keep track of these bug reports and encourage the TinyMCE and Webkit developers to get them fixed! ๐Ÿ’ช