![]() |
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. |
this would be an awesome hack, it'd be useful to me as well
|
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! |
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? |
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. |
All times are GMT. The time now is 04:51 AM. |
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:
|