Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.3k views
in Q2A Core by

using the jQuery adapter for CKEditor , its pretty easy to insert content into the textarea using the enhanced jQ val method .. for instance 

$("textarea[name='content']").val("text/html content here");

our plan is to add a button to the Ask Question page .. the button will pull in some context sensitive string stuff via Ajax and insert it in the textarea of editor. .. so it becomes part of the Q/A thread

my question is ( being new to platform :-)  ..what's the best way to add  jquery ajax and button code to the question ask page?  

should I work in our custom qa-theme.php?  .. or in one of the files in the include area? .. like someplace related to Stage 3 of the ask-a-question page controller

many thanks..  

 

 

by
some notes on the include files and config settings for the jQuery / CK adapter here:  

http://www.question2answer.org/qa/6364/cant-seem-to-set-content-in-editor-with-val-method

Please log in or register to answer this question.

...