-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Support #27
Comments
That would be great. Don't forget to display the "preview" and "fullscreen" options which are on hover, though. When I first heard of EE, I opened the demo page with an iPad, I tried the editor and thought "so what?", before having a quick glimpse of the two icons in the right bottom corner and realizing there were other options. |
@lucasrosaldi yep! The editor should have a different look for iOS altogether and will need to work with touch events. Hopefully I can get to this in the 0.1.3 release. |
Should be renamed to 'Mobile support' since there is not only iOS any more. In Chrome for Android its a little hard to use right now. |
Android would be a different ticket like how there was Safari, IE9, etc tickets. "mobile" support is too broad. If you want, go ahead and make an android ticket tho :) I want to add support eventually for sure, but the main issue is I don't have an android device. |
ok, I thought this issue is about how should things work on touch devices which would affect iOS and Android equally.
I would like that feature and I offer review it on Chrome for Android once there's a pull request. |
We want the same experience like we want the same experience across desktop On Friday, August 24, 2012, fuddl wrote:
|
Status on this? |
Sigh, soon. I had 2 core contributors but they've gotten busy with other projects/life so it's just me so progress has slowed down but I do generally work on this project every other day. It's set or 0.3.0 which does mean very soon since I'm close to the 0.2.1 release then |
Nice one. I'm probably going to drop this in as a replacement for Ace Editor on http://dillinger.io |
@joemccann That'd be awesome. Let me know if you need any help or if there's any bugs that need immediate attention :) |
Will do! I'm gonna create a fork that uses EpicEditor. I need to refactor the front end JS anyway, so this is a really good reason to do so. |
@OscarGodson LOVE EpicEditor. I forked it and tried to integrate into Dillinger, but the problem is the UI piece (namely the iframes) are so tightly coupled to the business logic of EpicEditor that I would be effectively hacking/patching my way to get it to work. That being said, digging thru your code has inspired me to swap out Ace editor for a bare bones approach of contentenditable and using marked on the client side. |
@joemccann I'd be interested in what were the actual problems so I can see if this is something that can fixed or that it just doesn't fit this use case. You can post here or email me oscargodson@outlook.com if you are interested in providing feedback :) |
If you look at how the iframes (presentation layer) is bound to the logic of rendering the markdown you'll see what I mean. If I just wanted to replicate the dillinger functionality but with using Epic Editor, I'd have to hack around and/or strip out the presentation layer logic that is bound to the rendering capabilities. It's certainly possible, but a higher LOE than I can dole out at the moment. By no means am I dissing the product, EE is fucking bad ass for a drop in markdown editor. Self contained. It's great. But for what I need, I want to leverage the look and feel but have custom logic available to render the markdown on keyup, for example. |
@joemccann I replicated the main part here (minus your CSS, of course): http://jsbin.com/uceyun/1/edit Adding the title, changing themes, etc would be trivial. Are you worried about the line numbers? I'm only asking because EpicEditor is meant to not only be a drop in editor, but also a set of APIs to build an editor and removing the default pre-packaged stuff by turning on/off options. |
Damn, nice work dude. I guess I was digging too deep! However, I'm the text is not render the markdown to html?? |
Not sure I get that last sentence haha. Are you asking how to get the text not as HTML? exportFile defaults to raw text. You can either leave it null or do "text" where "html" is. |
If I type markdown on the left HTML is not rendered on the right Joe McCann On Wednesday, February 27, 2013 at 12:55, Oscar Godson wrote:
|
Really? Working for me. What browser? Screenshot? From: Joe McCannmailto:notifications@github.com If I type markdown on the left HTML is not rendered on the right Joe McCann On Wednesday, February 27, 2013 at 12:55, Oscar Godson wrote:
Reply to this email directly or view it on GitHub: |
Evernote was unable to submit your note for the following reason: Original message information: To prevent excessive emails, you may not receive another error reply |
Chrome stable. I'll try again when at computer. Joe McCann On Wednesday, February 27, 2013 at 13:22, Oscar Godson wrote:
|
Has anyone started on the actual title issue? Do we have any specs for how behaviour should change? From what I've skimmed we're shooting for:
|
|
Any idea how mobile handles fullscreen anything? On desktop it lets you exit with ESC, how does that work on other devices? If there is a convention, I think we should just stick with that (unless it's too weird). |
You'd use faux fullscreen if you're on a mobile device or if the resolution is too small. FWIW, on IE10 / WP8 the fullscreen button works great, just can't close it haha |
Ah, okay. Is faux-screen implemented yet, or is that a sub-issue of this one? |
@gankro it's how IE9, 10, and how Firefox used to work until a couple months ago. The internal If not, like if it gives you JS errors, you can manually set it |
How do you feel about a config option "showChrome":
This way, at very least users can be smarter than us and do what they want with the chrome. For instance my deployment is basically a fixed banner/toolbar and then the rest of the page is just a big-ass editor. Since it's so big, I actually set a max-width on the actual text area, so I have tons of real-estate to just always show the chrome, which should make tablets work pretty alright (do we (you) care about phones, or just tablets?). |
Actually, I guess we could also just make "always" be an option for the individual buttons? |
I like the states in your previous comment a bit more actually. |
I think with the chrome autohiding, you really want an all or nothing, so yeah I agree with you that the former is better. |
Done some more hacking. It seems that iOS5 basically broke the iframe standard. By default, it grows to fit its content, and there's no way to actually tell it not to. The only workaround I've been able to find is the HOWEVER this does not seem to do anything when applied to the actual body (or html). As such, it seems that a div inside the body is necessary as the contenteditable element with this style applied. Is this a feasible change, or will this break everything forever and get us murdered? |
So... I dont THINK it would be too crazy. In the |
selection issue should be as easy as just removing all the padding/margins, and forcing 100% width/height no? I was mostly worried about this break some assumptions users make about our structure. Sounds like it's not a huge problem (difference between body and div isn't particularly huge). I'll give it a shot today, see what I can come up with. |
Yeah, that should work, just was saying that's the only thing I can think of that'll need changes I think. As for user assumptions, I'm not sure. I think getElement will have to be updated too to return the div and not the body like previewer. Cant think of why this would break anything, but we can bump the version number to be safe(r). |
…d the body new getElement selector to abstract away the element that contains the content
…d the body new getElement selector to abstract away the element that contains the content
Pretty decent mobile support can be achieved by setting autogrow:true and buttons.bar:false in the startup config. These are develop features right now, and not in stable. |
👍 |
We need to make the editor work on mobile devices, but for 1.0 just iOS5 for now. If more, awesome. I'm sure it'd mostly be CSS with some minor JS checks for touch support.
Maybe even on focus the editor fills the phone so it's just the editor and keyboard.
The text was updated successfully, but these errors were encountered: