The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Appending data to a post via javascript
Hello all,
I help administrate a math forum running vBulletin 4.2.1. I have recently added an element to the editpost, newreply and newthread templates that introduces a live preview of LaTeX to aid in debugging code more efficiently than using the "Preview Post" function repeatedly. Within this element, I have an input button that, using the onclick event, will copy the value of an internal textarea element to the post body using the javascript code: Code:
document.getElementsByClassName('cke_source')[0].value += document.getElementById('MathInput').value My question: is there a way to append data to the post message that will work regardless of the editor chosen by the user? I have tried manipulating {vb:raw post.message} to no avail. I appreciate any insights into how to get this to work. Best Regards, Mark. |
Благодарность от: | ||
mathforum |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|