The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating a custom editor button to insert text
I wonder if someone can help me with this.
I want to create a new button on the regular and quickreply editors that will insert some pre-defined text into the reply box when it is clicked. I am aware of this thread that will add extra buttons to the quickreply but those are for features already available on the full reply (like align, font etc.). What I want to do is create a button for a CUSTOM function that is not anywhere else and that is NOT a custom bbcode. In other words, a user clicks the button and a phrase like "abcdefghijk" is automatically inserted into the reply box so they don't have to type it themselves. Simply that. Can this be done? If it can, a little more complex would be if there was a drop-down menu to choose from several different phrases to insert....but that's not absolutely necessary...getting just the one custom phrase insert would be a tremendous help. I'm not a coder but I can follow directions. Can anyone help me? Thanks so much. |
#2
|
|||
|
|||
this would be an awesome hack, it'd be useful to me as well
|
#3
|
|||
|
|||
If this is turning into a full-blown request for a mod from one of our outstanding coders, I'll vote for the drop-down, multiple choice version.
Great idea, I hope someone can and will do this one! |
#4
|
|||
|
|||
can anyone help? is this doable?
Me again. Been spending a lot of time trying to search for a way to do this. Again, I'm not a coder so I'm hampered quite a bit already there. Anyway, from what I've read so far.... Is there some way to use the "onclick" command within a link to do this? Make a button on the editor and "onclick" it returns "this" and puts it in the textarea box. Like the emoticons, that get inserted using "onclick". But instead of inserting :smilie: into the textarea it would insert a string of text that I pre-define. Is this helping any? Getting closer at all? |
#5
|
|||
|
|||
Quote:
My code to add one button is on page 6, then others add code to create drown down menus and user interfaces... https://vborg.vbsupport.ru/showthrea...=113972&page=6 ps. unfortunately the code only works with the standard editors. Users would have to click the A/A button to toggle from the wysiwyg editor to standard to use the insert buttons. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|