This is a discussion on "BBcode text editor" within the JavaScript Forum section. This forum, and the thread "BBcode text editor are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
BBcode text editor
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
BBcode text editor
I have a form which uses Bbcode where I can use Bold, Italic, Underline etc but what I don't have and what is needed is an email link.
How do I add an email link to the form and to the JS file? Also I have noticed that when I highlight the text and try and change the color or the font size, the opening and closing tags are at the end of the text. If you look here you will see what I mean!! Here is the form
|
|
|
|
#2
|
|||
|
|||
|
Re: BBcode text editor
I have worked out how to add an email link which was pretty easy.
I am now stuck on changing of the font size and color. I changed a bit of code which sorts the problem out but when i type a few lines and try to change the color or size of the text it wipes the form clean I did change the function from this
Last edited by AdRock; Sep 2nd, 2007 at 21:00. |
|
#3
|
||||
|
||||
|
Re: BBcode text editor
Having a quick look through (although some of it is screwy due to mis-interpreted BBC tags in your post) I think you should be able to add an email button by simply adding this to the form :
<input type="button" class="button" value="Email" name="email" onclick="javascript:tag('eml', '', 'Email', '', 'Email', 'email');" onMouseOver="helpline('Email')" /> then add : var eml = 2; just below : var img = 2; in the javascript file. Although there does appear to be a few superfluous options in the tag() function. Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#4
|
|||
|
|||
|
Re: BBcode text editor
Thanks Rakuli
any idea of how i can get rid of this Quote:
Quote:
|
|
#5
|
||||
|
||||
|
Re: BBcode text editor
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#6
|
|||
|
|||
|
Re: BBcode text editor
That didn't work
|
|
#7
|
||||
|
||||
|
Re: BBcode text editor
Do you have a page I could look at? It would be good to see all of the code.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#8
|
|||
|
|||
|
Re: BBcode text editor
Yeah.......have a look here
http://www.jackgodfrey.org.uk/adam/bbcode/ I made this change and it sort of worked but it highlights absolutely everything.
|
|
#9
|
||||
|
||||
|
Re: BBcode text editor
Okay sorry, I think I know what you mean now.
This worked on my computer when I tested.
Hope this helps
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#10
|
|||
|
|||
|
Re: BBcode text editor
Thanks again Rakuli
You have come to the resuce again. It all works exactly how it should. Many thanks again |
|
#11
|
||||
|
||||
|
Re: BBcode text editor
Glad I could help.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Tags |
| bbcode |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| linux text editor substitute for Crimson | highrik | Scripts and Online Services | 2 | May 17th, 2008 10:35 |
| Forum text editor issue with IE.Fine in FF. | alicanteman | Web Page Design | 0 | Mar 2nd, 2008 21:38 |
| Rich Text Editor | Monie | Webforumz Cafe | 6 | Nov 15th, 2007 01:24 |
| [SOLVED] Text Editor | Monie | PHP Forum | 15 | Oct 19th, 2007 02:14 |
| BBC Text Editor With Javascript | AdRock | JavaScript Forum | 2 | Oct 17th, 2007 15:10 |