Inserting BR tag insted of P

Is there any way to make Dreamweaver insert a <BR> tag
rather than a <P> tag when you press enter?

No. If you would control your <p> tag top/bottom
margins with CSS, you
wouldn't need to do this.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"teh_russian" <[email protected]> wrote in
message
news:ethl0u$ju0$[email protected]..
> Is there any way to make Dreamweaver insert a <BR>
tag rather than a <P>
> tag when you press enter?

Similar Messages

  • Do I need to insert meta tags on domain if it redirects to web.mac page?

    Hi,
    I've set up a domain (http://www.blossomsolutions.ca) with Internic.ca in Canada and filled out a very easy form to redirect to http://web.mac.com/blossomsolutions. Through this excellent forum I learned how to insert meta tags into all my pages on the web.mac site using text edit successfully.
    Now, I'm wondering, will search engines find me if I have "no code" or meta tags at www.blossomsolutions.ca? Internic is only "redirecting" my URL not hosting it. It costs more money if they "host" my domain and I wouldn't have a clue how to set up an index.html page anyway for this domain. Even if I got someone to do this can you redirect an index.html page from blossomsolutions.ca to a web.mac.com page? i.e. does the domain code need to be empty in order for it to redirect?
    Thanks to anyone who can help me with this.
    Dazed and confused,
    Kathleen
    iMAC 2.16GHz 20"   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  
    iMac   Mac OS X (10.4.10)  

    Hello Kathleen,
    Welcome to the forum. You're site looks very clean and elegant.
    The domain name you purchased (http://www.blossomsolutions.ca/) is serving as a redirecting page to your iWeb generated web page. The answer to whether or not search engines will find you is both yes and no. Search engines use programs called "spiders" that find pages through links and trace out web pages.
    Given some time, sites like Google and MSN will likely find you website (and if you put meta tags in it will display that info in the search engine). But if you are like most iWeb users (myself included) you are impatient for your site to be picked up in search engines. Which is fine, since several search engines provide the means for you to submit your URL. Read this post for more information. http://discussions.apple.com/thread.jspa?messageID=3905977&#3905977
    Looks like you may have already submitted your .mac page.
    Another handy tip for looking up what information a search engine posses on your site is to type "site:" followed by the web address you wish to look up into a search engine. If the search engine has any of the pages to your site it will display them with the meta data they posses. Your site info can be found here. http://www.google.com/search?q=site:http://web.mac.com/blossomsolutions
    I checked your .ca address and google didn't come up with anything.
    Internic.ca should provide you with the means to apply a little bit of a description to your web address. Apart from that, you can't really add any meta data to the domain name.
    Unfortunately even when you get both web addresses picked up by search engines it won't associate them together. They may come up near each other in searches. But the search engine will see them as entirely different sites.
    You could host your site at the domain name if you chose to. The process of publishing is one click like to .mac. But you "Publish to a Folder" and then upload the complete page to the domain name. Its more difficult and cost more (if you chose to retain your .mac account) but it would give you better search engine rankings for your name.
    —"It costs more money if they "host" my domain and I wouldn't have a clue how to set up an index.html page anyway for this domain. Even if I got someone to do this can you redirect an index.html page from blossomsolutions.ca to a web.mac.com page? i.e. does the domain code need to be empty in order for it to redirect?"
    It isn't really worth it have them host your domain name only to put an index.html that redirects to your .mac. Thats basically what the domain forwarding is doing (minus a little bit of info).
    My advice is to keep things how you have them. But, just make sure you get the domain submitted to search engines.
    Hope this wasn't to long or confusing.
    Kind Regards,
    —Eric
    Ash Films
    (see my profile if you want to see my site)

  • Inserting blockquote tags into a HTMLDocument

    G'Day,
    I'm having a bit of trouble inserting <blockquote> tags into a HTMLDocument.
    Basically I want the blockquote tags to implement an indent feature. ie, you click a button and all the text in the current paragraph gets surrunded by blockquote tags, which when rendered makes it indent.
    The code I'm using is:
    Element current = doc.getParagraphElement(pos);
    try
    doc.insertBeforeStart(current, "<blockquote>");
    doc.insertAfterEnd(current, "</blockquote>");
    catch (Exception e)
    lets say we have html like this:
    <p>
    hello
    </p>
    when this code runs, i get:
    <blockquote>
    </blockquote>
    <p>
    hello
    </p>
    I think that when I do the insertBeforeStart and insert the opening tag, after that completes the document is rendered and the end tag is put in there automatically???
    So, can anyone help me out here and suggest a better way?
    Cheers,
    Leighton.

    I've been trying to get <blockquote> insert working in an editor but it seems to be a quite difficult task even if it's only about inserting a couple of tags into the right slot! This is the closest I got:
    HTMLDocument doc = (HTMLDocument)editor.getDocument();
    int start = editor.getCaretPosition()
    int paraStart = doc.getParagraphElement(start).getStartOffset();
    int paraEnd = doc.getParagraphElement(start).getEndOffset();
    String insideBlockQuotes = doc.getText(paraStart, paraEnd - paraStart);
    doc.setOuterHTML(doc.getParagraphElement(start),"<blockquote><p>"+insideBlockQuotes+"</p></blockquote>");
    This is how it works: Get the current paragraphs start and end positions, read the text between the start and end into a string, replace the paragrapElement with <blockquote><p>..the text from string..</p></blockquote>.
    This works 'in about' but it's far from perfect.. it has the following problems:
    1. It looses all formatting from the quoted paragraph (bold etc. tags from the quoted part)
    2. It assumes that the paragraphElement was a <p> (could have been another element too!)
    3. It's ugly
    Anybody come up with a better way to use blockquote?

  • Insert BASE tag into HTMLDocument problem

    Hi,
    I've made a prog that read the HTML content from an URL, and write it into a file. But before writing it, I'd like to change the content to add <BASE href="http://www.site.com"></BASE> into the head part of the HTMLDocument. In my prog, I've made a insertBeforeEnd(...) to insert the <BASE> tag, but it's not inserted. I've made another insertBeforeEnd(...) to insert "hello world" (just for test) and it's inserted into the HTMLDocument. Can someone help me ? thanks a lot.
    My prog :
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class InsertIntoHTML {
       public static void main(String[] args) {
          URL                  url = null;
          HttpURLConnection      conn;
          HTMLEditorKit         htmlKit;
          HTMLDocument         htmlDoc;
          InputStream            in;
          Element               head;
          boolean               ignoreCharSet = true;
          htmlKit = new HTMLEditorKit();
          htmlDoc = new HTMLDocument();
          try {
             url = new URL("http://www.google.com/");
          catch (java.net.MalformedURLException e) {}
          htmlDoc.putProperty(Document.StreamDescriptionProperty, url);
          htmlDoc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
          // read www.yahoo.com into HTML document
          try {
             conn = (HttpURLConnection) url.openConnection();
             in = conn.getInputStream();
             Reader reader = new InputStreamReader(in);
             Class c = Class.forName("javax.swing.text.html.parser.ParserDelegator");
             HTMLEditorKit.Parser parser = (HTMLEditorKit.Parser) c.newInstance();
             htmlDoc.setParser(parser);
             HTMLEditorKit.ParserCallback htmlReader = htmlDoc.getReader(0);
             parser.parse(reader, htmlReader, ignoreCharSet);
             htmlReader.flush();
          catch (javax.swing.text.BadLocationException ex) {}
          catch (java.lang.ClassNotFoundException e) {}
          catch (java.lang.InstantiationException e) {}
          catch (java.lang.IllegalAccessException e) {}
          catch (java.io.IOException e) {}
          htmlDoc.setBase(url);
          // find <HEAD> tag into HTML document
          head = getHeadElement(htmlDoc);
          try {
             // insert <BASE> tag into <HEAD> element
             htmlDoc.insertBeforeEnd(head, "<BASE href=\"http://www.google.com/\"></BASE>");
             htmlDoc.insertBeforeEnd(head, "Hello world !");
          catch (javax.swing.text.BadLocationException e) {}
          catch (java.io.IOException e) {}
          // write HTML document into file named yahoo.html      
          try {
             htmlKit.write(new FileOutputStream(new File("google.html")), htmlDoc, 0, htmlDoc.getLength());
          catch (java.io.FileNotFoundException e) {}
          catch (java.io.IOException e) {}
          catch (javax.swing.text.BadLocationException e) {}
       // Find first element into HTML document equals to tag parameter
       public synchronized static final Element findElement(Element root, HTML.Tag kind) {
          if(root == null) return(null);
          if(matchElementType(root, kind)) {
             return(root);
          int count = root.getElementCount();
          if(count > 0) {
             for(int i = 0 ; i<count ; i++) {
                Element child = root.getElement(i);
                Element e = findElement(child, kind);
                if(e != null)
                   return(e);
       return(null);
       public synchronized static final boolean matchElementType(Element e, HTML.Tag kind) {
          return(e.getAttributes().getAttribute(StyleConstants.NameAttribute) == kind);
       // Find HEAD element into HTML document
       public synchronized static final Element getHeadElement(HTMLDocument doc) {
          return(findElement(doc.getRootElements()[0], HTML.Tag.HEAD));

    first, thanks dvorhra09 for your help. unfortunately, if I use &lt; and &gt; instead of '<' and '>', the <BASE> tag is no more interpreted by my browser when the file is loaded, and the <BASE> tag is displayed textually. below, is what I tested :
    htmlDoc.insertBeforeEnd(head, "&lt;BASE href=\"http://www.google.com/\"&gt;&lt;/BASE&gt;");

  • How to insert h1 tags in muse

    I have tried to insert h1 tags in a muse site and then uploaded.
    When I come to test the site in SEO Analysis software it says there are no h1 tags!
    Any ideas?
    Thanks

    Hi
    How exactly you are defining the tags ?
    As Mac_heibu has suggested you can use paragraph styles and assign the tags.
    These videos will help you :
    http://tv.adobe.com/watch/learn-adobe-muse-cc/working-with-text-styles-create-a-paragraph- style/
    http://www.adobepress.com/articles/article.asp?p=1925239&seqNum=3
    http://www.lynda.com/Muse-tutorials/Creating-paragraph-styles/123518/131190-4.html
    Thanks,
    Sanjit

  • Insert new tags after root element

    Hi,
    I'm trying to insert new tags immediately after the root element in a DOM tree. The data to be inserted is being passed to the program as a string parameter. I've used Dom4J to add the data as a new element immediatelty after the root. Problem is, I'm not able to extract the content as a String from the document object. Here's my sample code :
    String addStr = "<div class=\"test2\">Test Val1</div><div class=\"test2\">Test Val2</div>";
    SAXReader reader = new SAXReader();
    String xml = "<div class=\"discussionThread dt\"><div class=\"dt_subject\">2011 IS HERE!</div></div>";
    Document document = reader.read(new StringReader(xml));
    DefaultElement newElement = new DefaultElement("div");
    newElement.addAttribute("class", "test");
    newElement.add(new DefaultText(addStr));
    List content = document.getRootElement().content();
    if (content != null ) {
            content.add(0, newElement);
    }There are couple of issues with this approach.
    1. I'm not able to find a way to convert the Document object content to String. The only API reference is asXML() which converts the document to a xml and sends it back as String. As a result of this, it adds a <xml> tag at the top.Also,the content within the added String has been parsed and converted to &gt; , &lt;
    Here's the output
    <?xml version="1.0" encoding="UTF-8"?>
    <div class="discussionThread dt"><div class="test">&lt;div class="test2"&gt;Test Val1&lt;/div&gt;&lt;div class="test2"&gt;Test Val2&lt;/div&gt;</div><div class="dt_subject">2011 IS HERE!</div></div>Just wanted to know if there's a better way to do this. Any pointers will be highly appreciated.
    -Thanks

    from oracle documentation...
    Old and new values are available in both BEFORE and AFTER row triggers. A new column value can be assigned in a BEFORE row trigger, but not in an AFTER row trigger (because the triggering statement takes effect before an AFTER row trigger is fired). If a BEFORE row trigger changes the value of new.column, then an AFTER row trigger fired by the same statement sees the change assigned by the BEFORE row trigger.
    for more details read the documentation

  • Insert Div Tag button does nothing. DWCS3

    Using the Insert Div Tag button all of the sudden does not add Div tags to the code view or dotted outline in Design view.
    Here's the code result from simply creating a new HTML doc, placing my entry point in the after <body>and click the Insert Div tag button.
    Any ideas?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
    <MMString:LoadString id="insertbar/div" />
    </title>
    <!-- Copyright 2003 Macromedia, Inc. All rights reserved. -->
    </head>
    <body>
    </body>
    </html>

    Nevermind... simple as rebuilding the prefs.

  • Is there a workaround for inserting form tags?

    Long time ago some developers found some bugs in the SWING class. The bug seems to appear when an HTML page pasted in the browser. Then the <form>-tags are disappeared while they can be found before pasting the HTML into the browser.
    This is my code so far:
    int pos = 0;
    int i = 0;
    body = getBodyContent();
    JspWriter out = body.getEnclosingWriter();
    HTMLKit = new HTMLEditorKit();
    try {
    out.println(body.getString());
    body.clearBody();
    String theQuery = "http://documentum1.europe.intranet/Docu2store:/list.htm?objectID=" + folderid + "&framed=yes|0&docstart=" + docstart;
    try {
    URL aURL = new URL( theQuery );
    URLConnection conn = aURL.openConnection();
    JEditorPane HTMLPane = new JEditorPane();
    HTMLPane.setContentType("text/html");
    HTMLPane.setPage(aURL);
    HTMLPane.read( new InputStreamReader( conn.getInputStream() ), "Docu2store" );
    //HTMLPane.read( new Reader (conn.getInputStream() ), "Docu2Store" );
    HTMLDoc = (HTMLDocument) HTMLPane.getDocument();
    //HTMLDoc.setBase(new URL ("http://documentum1.europe.intranet/"));
    // Reading the form
    HTMLDocument.Iterator form = HTMLDoc.getIterator(HTML.Tag.FORM);
    //form.next();
    Enumeration formEnum = form.getAttributes().getAttributeNames();
    out.println (form.getAttributes().getAttributeNames());
    out.println (form.getAttributes().getAttribute(formEnum.nextElement()).toString());
    //form.next();
    //out.println (form.getAttributes().getAttribute(formEnum.nextElement()).toString());
    // Reading the links and replace them
    HTMLDocument.Iterator theLinks = HTMLDoc.getIterator(HTML.Tag.A);
    theLinks.next();
    while (theLinks.isValid()) {
    Enumeration theAttsEnum = theLinks.getAttributes().getAttributeNames();
    String theValue = theLinks.getAttributes().getAttribute(theAttsEnum.nextElement()).toString();
    if (theValue.indexOf("sorting", 0) > 0) {
    i++;
    int pageNum = giveItemUrl("docstart", theValue) + 1;
    int startPosLink = theLinks.getStartOffset();
    int endPosLink = theLinks.getEndOffset();
    int linkLength = endPosLink - startPosLink;
    try {
    HTMLDoc.remove(startPosLink, linkLength);
    String fid = giveItemUrlString("objectID", theValue);
    String docstart = giveItemUrlString("docstart", theValue);
    String sorting = giveItemUrlString("sortingfield", theValue);
    HTMLKit.insertHTML(HTMLDoc, endPosLink - 1, "<a href='main.jsp?fid=" + fid + "&docstart="+docstart+"'>" + Integer.toString(pageNum) + "</a>", 0, 0, HTML.Tag.A);
    } catch (BadLocationException ble) {
    ble.printStackTrace();
    out.println( i + "fout" );
    theLinks.next();
    HTMLPane.write(out);

    Insert HTML via InsertHTML() doesn't work! After writing the HTMLDocument, Java inserts extra <html> tags!

  • Insert XML Tags in BPEL Email body

    Hi All,
    in one of bpel process we are inserting Xml message in the email body. but in the email all message is coming without start and end tags.
    lets say my xml meaasage is *<name>test</name>*
    the output iam getting in the mail is test
    we cannot use mime type 'text/plain',bcz we are inserting this xml message in html template.
    is there any way to send xml message in the email body?
    Any help would be appreciate...
    Thanks,
    Sudhakar.m

    Hi
    Thanks for the reply.
    Currently we are using same way as you mentioned ,that still not working.the mail is coming without xml tags.
    is there any workaround for this issue??
    Regards,
    Sudhakar.M

  • [JS] (CS2) How do you insert pseudo tags around italic text

    I need to find all the italic text strings wherever they occur (tables, headers, footers etc) in an InDesign CS2 document and insert a pseudo-xml tag before and after each string (something like
    before and <\I> after.)
    I'm positive this must be possible but my limited experience has failed me so far.
    Can anyone point me in the right direction please.
    TIA
    Doug Neale

    With many thanks to the experts, I managed to sort out the table slant problem. For the benefit of all our many readers, here is the complete solution tested with a multi page document hosting all sorts of text and tables. It's quite long because I believe in plenty of comments.
    // make sure we have at least one document open
    if (app.documents.length == 0) {
    // warn operator and exit immediately
    alert("There are no open documents.");
    exit();
    // OK if we get here, we have an open doc
    myDoc = app.activeDocument;
    // set up start and end tags
    startTag = "#.";// should really be "
    endTag = "#:";// should really be "<\i>"
    slantTagCount = 0;// initialise our two counters
    italicTagCount = 0;
    // If we are going to search/change something, we use preferences
    // So, the first thing we have to do is clear them out;
    // they're application level properties; see pages 567 and 568:
    app.findPreferences = null;
    app.changePreferences = null;
    // use the search() method to search entire document for italic fonts
    myFinds = myDoc.search('', false, false, undefined, {fontStyle : 'Italic'});
    if (myFinds.length != 0) {
    // myFinds will consist of an array of references into the text of the doc
    // each reference pointing to a run offset
    // run the loop backwards so that if we make any changes to the text runs
    // it won't affect the array of references.
    // now add the italic tags
    for (var j = myFinds.length-1;j>=0;j--){
    // at each italic text run we want to insert
    // a pseudo xml tag at beginning and end
    // Adding the tags is this simple (end tag first):
    myFinds[j].insertionPoints.item(-1).contents = endTag;
    myFinds[j].insertionPoints.item(0).contents = startTag;
    italicTagCount++;
    // as the italic effect can also be achieved by applying a slant to each character
    // we need to check the whole document again, but this time we do it story by story
    // Finding slanted text--when text.skew is not zero, text has been slanted.
    // Unfortunately, what you want to look for is cases where this value is NOT zero,
    // and even InDesign's grep search can't find that (it can apply NOT to character classes,
    // but not to formatting attributes)--or, at least, I can't figure out how to do it.
    // So you have to "roll your own." Something like this:
    myStories = myDoc.stories;
    for (var jj = myStories.length-1; jj >= 0; jj--) {
    // loop through all the stories in the document
    myStory = myStories[jj];
    //Given a story "myStory"...
    for(var myCounter = myStory.textStyleRanges.length -1; myCounter >= 0; myCounter --){
    if(myStory.textStyleRanges.item(myCounter).skew != 0){
    //Found some slanted text.
    myStory.textStyleRanges.item(myCounter).insertionPoints.item(-1).contents = endTag;
    myStory.textStyleRanges.item(myCounter).insertionPoints.item(0).contents = startTag;
    slantTagCount++;
    // the above procedure does all the italic content in tables as well as ordinary text boxes
    // but only does skewed (slanted) text in ordinary text boxes.
    // We need to tackle skewed text in tables separately.
    for (var i = myStories.length - 1; i >= 0; i--) {
    // go through every story
    for (var j = myStories[i].tables.length - 1;j >= 0; j--) {
    // go through every table in this story
    for (var k = myStories[i].tables[j].columns.length - 1; k >= 0; k--) {
    // go through every column in this table
    for (var m = myStories[i].tables[j].rows.length - 1; m >= 0; m--) {
    // go through every row in this column to look at each cell
    myCell = myStories[i].tables[j].columns[k].cells[m];
    // introduce another variable to make next bit more readable
    myCellStyle = myCell.textStyleRanges;
    if (myCellStyle.length !=0) {
    // go through all the text ranges in this cell
    for (var myCounter = myCellStyle.length - 1; myCounter >= 0; myCounter --) {
    // check each range item for skew
    if (myCellStyle.item(myCounter).skew != 0) {
    // found some slanted text so tag it
    myCellStyle.item(myCounter).insertionPoints.item(-1).contents = endTag;
    myCellStyle.item(myCounter).insertionPoints.item(0).contents = startTag;
    slantTagCount++;
    // tell operator what we did, note that document appearance not updated until
    // alert has been acknowledged by operator.
    alert ("Italic Tag Count = "+italicTagCount+"\nSlant Tag Count = "+slantTagCount);
    Regards,
    Doug Neale

  • Safari inserts extra Tags in phpBB2

    Using Safari 3.1.2 with Vista and XP on two different computers.
    In a phpBB2 forum, after selecting a formatting entry from a dropdown menu, Safari correctly inserted the BB tags for font size
    (in square brackets, which don't work here) {size=24} Sample text [/size]".
    When I clicked to the text field or pressed tab to move the focus, Safari added another
    {size=0} and [/size]"
    tag to the text.
    This does not happen in a phpBB3 board, nor do either IE, Firefox or Opera show this behaviour with the same board.
    Message was edited by: Zoe Lionheart {Brackets}

    I'm not sure that's possible. Somehow that's how Safari received the code.
    Usually the other browsers will ignore these types of errors. They are more forgiving.
    Click Help -> Report Bugs to Apple. Looks like 'behavior is wrong'.

  • HTMLEditorKit: Inserting Custom Tags?

    How do you insert a custom tag into a HTML document? I've tried both:
    HTMLEditorKit.InsertHTMLTextAction( "merge", "<merge name=\"date\">DATE</merge>", HTML.Tag.BODY, new HTML.UnknownTag( "merge" ) )and
    kit.insertHTML( doc, offset, "<merge name=\"date\">DATE</merge>", 0, 0, new HTML.UnknownTag( "merge" ) );Both of these methods work fine for standard HTML tags.
    -- John

    I think you have to extend HTML.Tag, the following is quoted from the API documentation:
    Typesafe enumeration for an html tag. Although the set of html tags is a closed set, we have let the set open so that people can add their own tag types to their custom parser and still communicate to the reader.
    OTHER READERS PLEASE DON'T SHY GIVING A REPLY.
    (I have got no real experiences with the HTMLEditorKit.)

  • Dreamweaver Crashed on Mac when inserting Div Tags

    We are experiencing interface lock up when attempting to
    insert a div tag using the insert div icon on the insert common
    toolbar on our Mac G5's. After selecting Insert and attempting to
    select one of the insertion choices the machines lock up and have
    to be force quit...doing very simple div tags with simple styles
    for creating horizontal navigation...
    Body (Block Centered Padding and Margin set to 0)
    #wrapper (Block Aligned left Padding O margin set to 0 auto 0
    auto)

    Try downloading instead of using the disc.  CS3 - http://helpx.adobe.com/creative-suite/kb/cs3-product-downloads.html

  • Insert HTML.Tag attributes?

    Hey,
    How would I insert html attributes? I am making a HTML Editor.
    The following are some valid java html attributes. How would I insert it properly?
    HTML.Tag.P, HTML.Tag.BLOCKQUOTE, HTML.Tag.CENTER,
    HTML.Tag.CITE, HTML.Tag.CODE, HTML.Tag.H1, HTML.Tag.H2,
    HTML.Tag.H3, HTML.Tag.H4, HTML.Tag.H5, HTML.Tag.H6,
    HTML.Tag.PRE
    Like for example, to make text bold, you would do
    MutableAttributeSet attr = new SimpleAttributeSet();
    StyleConstants.setBold(attr, true);
    textpane.setCharacterAttributes(attr,false);
    Is there similar code like the one above to add HTML.Tags like the ones I listed above in my post?
    Thanks in advance

    Hi,
    sorry about the delay, couldn't find this thread last night.
    Useful docs:
    http://java.sun.com/products/jfc/tsc/articles/text/element_interface/index.html
    and
    http://java.sun.com/products/jfc/tsc/articles/text/attributes/
    Those methods are in javax.swing.text.html.HTMLDocument and take the form insertBeforeStart(Element, String). As I said yesterday, as soon as you have text then the caret is in a character Element and a Paragraph element. So for e.g. if you're in a P element and you want to create an H1 element, how do you do it? If the user clicks your H1 button then you create an empty heading, easy enough. But if they have some text selected then you have a choice. You could just create an empty H1 or you could assume that they have typed the H1 content and have highlighted it so that it becomes an H1. You then have to change the existing element so that is no longer has the (now H1) text in it.
    That's where the other two methods (setInnerHTML and setOuterHTML) come into play.
    The other problemette that I'm working on is reseting text back to normal after it has been formatted.
    Suppose you have a P paragraph. The user highlights a single word, clicks Bold. That's easy. Then they decide that they don't want it bold, so they click the Normal button. Taking bold off is easy, but should you. What if the paragraph element was actually an H1 element. If you turn bold off now then that word no longer matches the H1 style.
    You could check at the caret position just before the start of the element that the user has selected and see what the style is there. BUt then waht if the user has the word before perhaps underlined. Again it's unreliable.
    Also I'm finding then when I remove the bold formatting that the element isn't being reabsorbed into it's parent. In a paragraph if I go through and make each word formatted (B, i, u) and then switch the formatting off word at a time I end up with each word as an element.
    Still working on these, so I'll post a solution when I have one.
    regards
    sjl

  • When I Insert DIV tag, where is the rule?

    http://www3.telus.net/~jessum
    Q1) See on my page where it says "Content for new DIV tag
    goes here". How do I select this and edit it? When I selected the
    "insert new div tag button" I thought it was supposed to add a new
    rule under the <style> tag but I don't see it there.
    Q2) Also see where the wine color "Sidebar" is. How do I get
    the sidebar to extend to the footer?
    Thanks in advance :)

    When you insert a new DIV, you have an option to also create
    a new CSS rule
    on the INSERT DIV dialog panel. Click it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Comp. 792" <[email protected]> wrote in
    message
    news:ge66kt$quo$[email protected]..
    >
    http://www3.telus.net/~jessum
    >
    > See on my page where it says "Content for new DIV tag
    goes here". How do I
    > select this and edit it? When I selected the "insert new
    div tag button" I
    > thought it was supposed to add a new rule under the
    <style> tag but I
    > don't see
    > it there.
    >
    > Thanks in advance :)
    >

Maybe you are looking for

  • Problem in using serial port.

    I am using serial port to get data from a fusion splicer. The number of bytes at the port is 4096 but the read buffer of VISA read is empty. I am reading the same number of bytes. Can any one tell me what is the maximum size of VISA Read buffer? I am

  • Trying to install iTunes 10.5 on Windows 7

    I have the 64-bit version of Windows 7 and everytime I try updating to iTunes 10.5 I get this error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT.type="1fc8b3b9a1e18e3b".processorArchitecture="x86"'.Please refer t

  • Photos can't be found on my computer

    After the update from Windows 8 to Windows 8.1, i' can't find any photo in photo stream. None of my icloud photos appear in photo stream and the new photos are not being sent to my computer. What to do?

  • Restoring the source system connection in BW

    Hi all, I’ve been trying to upload data for 2 of my infocubes, and the extractions are bouncing. The message in R/3 is told me to check the connection. The RFC are fine.  But when I tried to restore the source system connection (RSA1 in BW), it sent

  • Network diagnostics - can't connect through Ethernet...ps3 and old iMac work but I can't get this macBook online...help!?!!

    Having a problem out of nowhere really getting this MacBook back online through Ethernet.....it's not the modem because my old computer gets online as well as the ps3.....I think it has something to do in network diagnostics but I can't get it. Thank