![]() |
Insert text into editor
I never imagined something like this would be so complicated, but I'm looking for a way to add text into the editor (both wysiwyg and standard editors) when clicking a link or button.
|
In the postbit or where?
|
Into the editor when writing a post. Namely for the "newthread" template. I'd like to create a button which would populate/insert text into the textarea of the editor when clicked. Similarly to how you press a Smilie and it appears inside the textarea.
|
That will take a hack like they use here for the Unlicensed User messages. One hasn't been released yet that I know of.
|
I'm well aware that nothing has been released, otherwise I would of already of tried it. :p I am trying to create one. My understanding is that it would take an OnClick event based on a javascript function to accomplish this. But my javascript coding skills are very poor so I hope someone out there can help.
|
There is kinda a hack like this, but it will effect all newthreads in a forum. It's call the Stencil Hack (I think). You may want to check it out and see what they do and then modify it for what you want.
|
The javascript is only the small part of it.
|
This is the hack in question:
https://vborg.vbsupport.ru/showthread.php?t=130162 Although not exactly what I need, I will certainly try it out and see if this will work for my purposes. Quote:
|
I did a version of the hack they have hear from the Unlicensed user message. I use the javascript for the pull down menu that has like 6 different messages to add to posts.
|
Quote:
As for the stencil hack, although it functions as it should. The limitation is that I am forcefully restricted to 1 message, but I have at least 3 different preset text templates I would like users to chose from. |
All times are GMT. The time now is 12:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|