Hi,
I have a question that maybe someone can help me with?
I have a html textarea. I want to make a menu bar for it. This menu
bar should add <p<i<betc... tags to highlighted text. Plus
closing tags.
I am not the best at javascript and was hopeing someone may be able to
help me?
I have searched but haven't found anything yet. I did find "TinyMCE "
etc but I don't need most of it's functionallity.
Any help would be greatly aprechiated.
Thanks in advance.
Kind Regards,
Mickey 4 1149
On 21 Nov 2006 13:42:33 -0800, in comp.lang.javascript "Mickey"
<mi************@gmail.com>
<11**********************@m7g2000cwm.googlegroups. comwrote:
>| Hi, | | I have a question that maybe someone can help me with? | | I have a html textarea. I want to make a menu bar for it. This menu | bar should add <p<i<betc... tags to highlighted text. Plus | closing tags. | | I am not the best at javascript and was hopeing someone may be able to | help me? | I have searched but haven't found anything yet. I did find "TinyMCE " | etc but I don't need most of it's functionallity.
Have you looked at FCKeditor? http://www.fckeditor.net/
--------------------------------------------------------------- jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jeff North wrote:
Have you looked at FCKeditor? http://www.fckeditor.net/
--------------------------------------------------------------- jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Thanks for the reply.
Yes, I've seen this, however it's a lot more than I need.
I just basically need to wrap <b></b>'s etc... around selected text.
So a simple button would suffice.
Thanks again for the help.
Mickey wrote:
Jeff North wrote:
Have you looked at FCKeditor? http://www.fckeditor.net/
--------------------------------------------------------------- jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Thanks for the reply.
Yes, I've seen this, however it's a lot more than I need.
I just basically need to wrap <b></b>'s etc... around selected text.
So a simple button would suffice.
Thanks again for the help.
In reply to myself, I found this: http://www.javascriptsearch.com/scri...g_creator.html
This is almost what I need, except, I need to be able to select text
within the text area and for example, click a <Bbutton and have the
highlighted text be surrounded by: <Bhighlighted text </B>..
Any ideas?
Thank you in advance.
Mickey escreveu:
In reply to myself, I found this: http://www.javascriptsearch.com/scri...g_creator.html
This is almost what I need, except, I need to be able to select text
within the text area and for example, click a <Bbutton and have the
highlighted text be surrounded by: <Bhighlighted text </B>..
Take a look here: <URL:http://jsfromhell.com/forms/selection:]
Getting the caret coordinates and the selected text (when the selection
has just empty blank lines, it returns an empty string...) is
problematic with under IE when using <textarea>'s, I've made some dirty
fixes to get the expected results :(
--
Jonas Raoni Soares Silva http://www.jsfromhell.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fuli Chang |
last post by:
I don't like other people see my html code. Is there a way to hide it? Thanks.
|
by: Seth |
last post by:
How can I completely turn off the auto formatting of Html
in Visual Studio 7? I have tried all possible
combinations (at least I think I have) of the Tools /
Options / Text Editor / HTML XML / Formatting. This is a
big annoyance because with a rather large page it can be
very time consuming to reformat by hand, and very time
consuming to...
|
by: Terry Andersen |
last post by:
If I have:
struct one_{
unsigned int one_1;
unsigned short one_2;
unsigned short one_3;
};
struct two_{
unsigned int two_1;
|
by: coder10 |
last post by:
Two things
1. Why does ASP.Net not respect code formatting for the HTML tags. I mean, when I write my HTML, I try to use appropriate tabs and spaces and lines beween my tags, but when I save and open in Design View and come back, my HTML view loses all its code formatting.
2. ASP.Net has been inserting "DESGNTIMESP" tags in random places in...
|
by: Coleen |
last post by:
Hi all :-)
I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML.
Here is the snippet of code for the cell I'm trying to format:
Dim ld_tot_pet_clean_fee_calc As Double
ld_tot_pet_clean_fee_calc = li_net_total_calc * 0.0075
ld_tot_pet_clean_fee = lo_misc_func.FormatMC(ld_tot_pet_clean_fee_calc,...
| |
by: Arthur Dent |
last post by:
Hello all, ive been programming with ASP.NET since it came out, but am just
getting my feet with now with v.2.
Ive noticed something strange in the way my HTML tables get rendered with 2.
I use tables to layout my pages, doing three rows, a header, content and
footer. When i do this, i make the tables height=100%,
so the footer always shows...
|
by: realmerl |
last post by:
Hi All.
I'm trying to transform a html document into plain text via xslt.
Simple you say! (i hope)
I have got it working, by using the magnificent <xsl:value-of select="."/>.
This returns the whole document, and <xsl:output method="text"/> ensures that the output I get is plain text.
problem:
The html I am transforming has a table, with...
|
by: sanjay123456 |
last post by:
Dear friends,
<?php
//define the receiver of the email
$to = 'sanjay.mit@gmail.com';
//define the subject of the email
$subject = 'Test HTML email';
//create a boundary string. It must be unique
|
by: Surbhi |
last post by:
Hi
We have HTML datasheets but now we want then in PDF format because
page layout is very bad when HTML is printed.
I am through with the XML and XSLT part. But donot hav any idea of XSL-
FO.
I guess, i would need to use "fo" tags in the XSLT. Could someone
suggest me some good reference material, or pointers for this.
Its a bit urgent,...
|
by: CJM |
last post by:
David,
Thanks for the reply.
Responses inline:
"David E. Ross" <nobody@nowhere.notwrote in message
news:OZadnaBdOMGpYb3VnZ2dnUVZ_vOdnZ2d@softcom.net...
This is a promotional mailshot so image is important. I understand what you
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |