Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
2.3k views
in Q2A Core by
edited by
by
You mean when the user enters text in the CKEditor. What "options" do you like to show, please be more specific.
by
yes, when user try to enter more informatn about question title through text....in ask form
I want to show (Read more...) link option ,when question text words limit exceeds >80.
by
But when he enters text, why should he "read more"? And what should he read more? (what is behind the link).
by
I mean, when some one enters question title,below it he enters More inrormatn about this question in text form.....some users are giving a vast explanation about questions in text.....for this ....if there could a funtion to (show more..) link when the text informatn about questn exceeds 80...

1 Answer

+1 vote
by
selected by
 
Best answer

Okay so here we go. I have done this and you can find it on Q2A Market - Gist

Code on Gist

I have modified the answer on Gist. Due to character limit, I am unable to post it here. Better take from Gist.

by
There are some minor issues. Need to fix and will update the code.
by
I have fixed the issue and update on Gist. https://gist.github.com/q2amarket/9949229
by
Thanks a lot jatin.....for your valuable time in coding dis solution......this code will help a lot for users to quickly overview the question contents....
by
Glad to work on it.. !
by
where to put this file?
by
How would you get this to work where you have multiple questions and answers on a page all requiring "more..."? The id route is fine if there's only one but doesn't work for many.
by
@delstone,
Do you mean on the question list? or On the question page but for all answers?
by
I meant on the question list - I've kind of got this to work but it's a little ugly:

                function toggleMore(elm) {
                    var linkContainer = elm.parentNode.getElementsByTagName('div')[0];
                    var contentContainer = elm.parentNode.getElementsByTagName('div')[1];
                   
                    linkContainer.style.display =  'none' ;                      
                    contentContainer.style.display = (contentContainer.style.display == 'inline' ) ? 'none' : 'inline';                                         
                }

Can it be improved?
...