Skip to content
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

Textarea support #36

Closed
Iristyle opened this issue Nov 28, 2012 · 2 comments
Closed

Textarea support #36

Iristyle opened this issue Nov 28, 2012 · 2 comments
Labels

Comments

@Iristyle
Copy link

Came across this and was impressed... pretty awesome.

There are a few other cases where this would be even more useful -- within standard <textarea>.

  • Forums like phpBB or vBulletin that want BBCode (BBCode sucks compared to Markdown)
  • Craigslist thats OK with HTML
  • Other textarea based sites

So I'm not sure the best approach -- could overlay the existing textarea with a contenteditable div... or mod the DOM to add the attribute to the textarea -- which probably has side effects.

Just thought I'd throw it out there -- this would increase the utility of this extension quite a bit IMHO.

Thanks for the consideration!

@adam-p
Copy link
Owner

adam-p commented Dec 29, 2012

This is interesting, but I think it lays outside the domain of Markdown Here. There are certainly lessons and code from MDH that could be applied to a textarea converter, but I think it's just to different to make sense in this extension.

I think it would be somewhat easier to build and maintain a textarea converter than MDH, since you're replacing the text content of a textarea with different content, rather than messing with the DOM inside a contenteditable element (often inside an iframe). There would probably be fewer browser-specific gotchas.

If you choose to implement it and want to start from the structure of MDH, I'd be happy to answer any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Iristyle @adam-p and others