What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

Is it appropriate to put a really long answer on SO (and I mean really long)?

There are many questions asking how to implement a Rich Text or WYSIWYG editor using javascript. Examples include:

How to create a rich text editor

Rich Text Editor

Risk of using contentEditable in IE

None of these questions have a good answer, most of them just advise against implementing it yourself, or suggest using TinyMCE or similar. There is a good reason that all of the answers are like this, and that is that the answer is of necessity very long. My implementation tops out at just over 2000 LoC, and that is after stripping it to the minimal acceptable functionality.

As far as I know there is no tutorial for a WYSIWYG editor that goes beyond the basic execCommand commands anywhere on the web. However, after taking a considerable amount of time to figure it out myself, I feel like others could benefit a lot from a start to finish answer. My intention would be to create a new master question to house a complete introduction to contenteditable and the various browser quirks.

Unfortunately, with the code itself at 60000 characters+, an answer isn't going to fit in the 40k limit. I don't really think it can be split, as the resulting code would then not be functional. So what should I do?

share|improve this question
4  
It's not appropriate to ask a question that would require a really long answer. The questions you just linked to would, in all likelihood, be closed very quickly if they had been posted now. –  NullUserException อ_อ Dec 9 '11 at 0:41
    
40K limit allows for a pretty comprehensive answers... I think :) –  gnat Dec 9 '11 at 8:02

3 Answers 3

up vote 7 down vote accepted

Break it down to a set of digestible components, and post each of those components as a question, offering an answer for each. As ProblematicTitleException has stated, your original proposal is a huge question, which puts you in danger of it being too broad for the site (and most people would learn better from a magazine article than a tome, given the same amount of time).

Rather than posting a massive amount of code, provide commented snippets which illustrate key points of your question/answers. Link to GitHub or your favorite equivalent to provide the full code. That way, your readers can get the gist without having to wade through.

share|improve this answer

On a question that isn't otherwise doomed, you may be able to limit the scope by citing a few bracketing examples. In the editor realm, for example,

  • a minimal implementation of a popular feature
  • an accessible, domain-specific example
  • a well-known, industrial-strength project
share|improve this answer

In most cases, reference to the best resources should be sufficient, appropriate and useful. Just provide the links after you have checked and verified them yourself.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .