hgaol opened a new pull request, #1014: URL: https://github.com/apache/incubator-answer/pull/1014
close #1009 . using `prefill` query parameter for pre-fill content. Using `JSON` format with same structure with draft data saved in local storage. the query parameter should be serialized before using as parameter. the serialization steps are similar as below. ```js encodeURIComponent(JSON.stringify(<object>)) ``` e.g. ``` http://localhost:3000/questions/ask?prefill=%7B%22title%22%3A%22aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%22%2C%22tags%22%3A%5B%7B%22slug_name%22%3A%22test%22%2C%22display_name%22%3A%22test%22%2C%22original_text%22%3A%22tst%22%7D%5D%2C%22content%22%3A%22%20wwwwwwwwwwwwwwwwwwww%5Cn%20%5Cn%20%23%20hello%20world!%5Cn%20%5Cn%20%60%60%60js%5Cn%20const%20a%20%3D%201%3B%5Cn%20%60%60%60%22%2C%22answer_content%22%3A%22%22%7D ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
