Insert the br tag

Greetings...

I have an editable text box...

When I try and hit 'return' to go to the next line, I get a closing tag... div rather theer is a way to force a < br > tag to be used in striking back or is there a tag I can insert the turn ice to make a comeback?...

Hello noel4nopun,

I got more information on this topic of our team of engineers... Different browsers behave differently using the button ENTER or SHIFT + ENTER in the middle of the text.

From the following HTML code:

editable, this is the only text node

editable, this is a DIV

editable, it is a P

Here are the results after you press ENTER in the middle of the text:

Results in Firefox3:

editable, it is
text only node

editable, this
is a DIV tag

editable, this

is a P

Results in Internet Explorer 6/7:

editable, it is

text only node


editable, this
is a DIV tag

editable, this

is a P

Results in Safari 3:

editable, it is
text only node

editable, this
is a DIV tag

editable, this

is a P

The results are also different in every browser when you press SHIFT + ENTER in the middle of the text: FF3, IE6 and IE7 correctly insert a tag BR; Safari seems to ignore the SHIFT modifier and acts as only the key has been pressed.

F3 results:

editable, it is
text only node

editable, this
is a DIV tag

editable, this
is a P

Results in IE6/7:

editable, it is
text only node


editable, this
is a DIV tag

editable, this
> is a P

Results in Safari3:

editable, it is
text only node

editable, it is
a DIV

editable, it is

a P

So, if you need tags BR, ask your user to edit with Firefox or IE and use SHIFT + ENTER between paragraphs.

Best regards
Corey

Tags: InContext Editing

Similar Questions

  • Where to insert the &amp; quot; H1 &amp; quot; Tag?

    Forgive the newbie question...

    Where should I insert the HEADLINE1 tags in the next line? (I want to include the 'editable' region and the word 'specials' in the title tag).

    Where should I insert the < h1 >?

    So where should I insert the < / h1 >?


    Thank you.

    < p align = "center" > < b > < span lang = "" en - us "> < i >"
    < font size = "5" color = "#0000FF" > <!-TemplateBeginEditable name = 'Name'-> <! - TemplateEndEditable - > < / police > < / i > < / span > < i > < font size = "5" color = "#0000FF" > < strong > < u > BEST < /u > bargain! < / strong > < / strong > < / font > < /i > < / b > < / p >
    < / make >

    Yes - two separate h1 tags. Or other tags from level H.
    Why you should not place an editable inside tags like H or P or
    B or others like them. This requires being hassled by an alert box on the
    locked content.

    Maybe you could get away with it in this case, IF you do not ever
    to put the tags within this editable area who do not belong inside a tag H.
    As no points and so on.

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • Customized by default for the img tag

    Hi all

    I've always used HomeSite for HTML coding in the past, I like the interface and the direct control of the HTML code, however, I'm experimenting with the use of Dreamweaver. While the coding of templates for our email marketing solution [link removed by Moderator] I noticed that when you import images, Dreamweaver is not automatically add the border = '0', the height or width attributes. Y at - control to have these added by default?

    Look forward to your responses.

    Thank you very much

    Pete O'Connell

    PeteOConnell wrote:

    When you import images, Dreamweaver does not automatically add border = "0", the height or width attributes. Y at - control to have these added by default?

    Dreamweaver adds height and width automatically if it can detect the dimensions of the image. However, you have reason it adds not the attribute border, because it is deprecated in HTML.

    If you want to change the default behavior, you can do so by editing the JavaScript file that inserts images. In Dreamweaver CS5, this is C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CS5\configuration\Objects\Common\Image.js (Windows) or Applications/Adobe/Adobe Dreamweaver CS5/configuration/Objects/Common/Image.js.

    Modifying the files in the configuration folder is relatively simple, if you're careful and you know what you're doing. Make a backup in case you're wrong.

    45-49 lines insert the image tag. They look like this:

      if (imgDim){
        rtnStr= '';
      }else{
        rtnStr= '';
      }
    

    Add border = '0', change them like this:

      if (imgDim){
        rtnStr= '';
      }else{
        rtnStr= '';
      }
    

    As you can see, rtnStr in the first half of the conditional statement adds the width and height if they are detected. You can add them to rtnStr in the else clause if necessary.

  • How to insert an onload = "initialize ()" on the &lt; body &gt; tag "

    Hi, I just can't understand how can I insert an onload = "initialize ()" on the < body > tag without editing it after generating the code HTML. "

    Hi Victor,

    You can use the HTML code for head option to add the code.

    Kind regards

    Akshay

  • By selecting in the Insert Panel does not add the closing tag

    Hello

    I wish to emphasize the part of the text in the Document window and select an item in the Insert panel to frame part.

    However, when I select the section or paragraph, it only adds the opening, such as < h > and < p > without his counterpart of the fence.

    It of just a bug or am I skip a step? Please tell me how the closing tag can be implemented by using the Insert panel.

    Thank you in advance,

    EAD

    I can't my pCOC CARD on W7 2015 to do what you describe.

    What version of the program and which OS are you running?

    Your code is error free? Try to run the validator at http://validator.w3.org/nu for a list. Many features of DW depend on clean and valid code working properly, it is possible that a small mistake may be confusing program.

  • loop over a list with &amp; quot; Insert &amp; quot; in the cfquery tag valid?

    looping over a list with 'insert' in the cfquery tag valid? He
    throws any errors and inserted into the table without any
    problems, but just wonder if it is possible to use since when I tried
    Select article twice in a cfquery, it executes only the first.

    < cfquery >
    Select the test in testdata

    Select othertest from differentdata
    < / cfquery >

    If it works, it is valid. Different from the db support different syntaxes on this issue. A way that would work for all db's

    insert into sometable
    (fields)

    Select somevalues
    from somewhere

    Union
    closing tags.

  • Disable "insert the front element / remove item ' in the table

    Hello guys.

    It is possible to deacitvate function "insert the front element / delete" appears after right-clicking on a table in the front?

    "Description and trick" should stay.

    Thank you.

    Alex

    You can customize the context menu to remove elements of the request and keep others:

    Click on the table (and not on the array element!) in the Panel and select Advanced-> Menu contextual Run - Time-> Edit...

    This brings the context Menu Editor:

    Change the control drop-down menu of "Default" to "Custom".

    Select it "?" line in the tree on the left control.

    on the right, change the element Type of the "user position" «Application point-> Description and Tip...» »

    It automatically fills the corrent name and the tag.

    Save the rtm either in a file or in the control.

    LV will automatically manage elements of the application in the control, any necessary events.

    I sometimes find the function "Menu copies" of the context menu very useful if I want to just disable some elements.

    http://zone.NI.com/reference/en-XX/help/371361G-01/lvconcepts/customizing_vis/#Customizing_Menus

  • can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    ReemaPuri wrote:

    in the workspace image:-resign.jpeg

    As a button? Seriously?

    Ok. First of all, because the image already contains text, there no point in including the same wording in the form of text on the button. Accessibility requirements can be met using re-sign as alternative text. 4.2, create an image button:

    Tag/Alt text: Re-sign

    Static ID: re - sign

    Style button: Image

    Button Image: & WORKSPACE_IMAGES.resign.jpeg

    To make the image looks more like a button, add the following CSS to Inline CSS property page:

    #re-sign img {
      margin: 0 2px 2px 0;
      border: 2px outset;
      border-radius: 4px;
    }
    #re-sign img:active {
      margin: 2px 0 0 2px;
      border: 2px inset;
      border-radius: 4px;
    }
    

    Finally, there is a bug in 4.2 that generates the incorrect URL for the button images, which requires dynamic action of Page Load to fix.

    Event: Loading the page

    Action: Run the JavaScript Code

    Code

    var resignImg = $("#re-sign img");
    resignImg.attr("src", resignImg.attr("src").replace("/i/", ""));
    
  • Why the function "Insert an Image" does not insert the code at the location of the cursor?

    I mainly work with php files and I'm still working in code view only.  I am editing the php files that I wrote using a different code a few years ago Editor.  I place the cursor to the place in the code where I want to go the image tag and use the menu "insert an Image".  The code is then placed directly under the < body > tag.  It is always placed in the same place no matter where I place it in the code.  Can someone tell me what is happening here?  Thank you.

    Not sure why it does not insert the image where the cursor is, but my workflow is much easier. I mainly work in code view and I will drag the image from the files Panel to where I want to in my document. Simple

  • Insert the Panel in Design view

    It of just my computer or is it true for others? I have Dreamweaver CC 2015. When I begin to insert an item, such as a header, using the Insert the Insert dialog box Panel is displayed in design mode. In this dialog box, there is a menu drop down insert. If I pick up after the beginning before the end of the tag or the tag in this drop-down list a second dropdown becomes available. It seems that in this second drop-down menu that you are supposed to be able to choose different tags. The problem is, no matter where I am clicked in the document, the only tag that never appears in the second drop-down list is < body >.

    insert_header.gif

    I can do what I need in code view or mode live view, but it's bugging me.

    Thank you

    Jen

    Figured out how to get something other than the body in the second dropdown. The second dropdown apparently shows that body and elements of ID

    I wish, that he did not only elsewhere, but at least it now the logical 2nd drop-down list. Could not understand why he would be there if onlynever appeared in it.

    Guess I need to use another method to get my h1 less than my rather nested within the NAV nav element. If it was just for me it would be easy but I write documentation for beginners in Dreamweaver.

    Jen

  • Muse produced automatically from the "canonical" tags for phone and tablet, but it does not include "www". How to fix?

    So if I have my site j - 26.com redirect to www.j-26.com then my canonical url should be: " " http://www.j-26.com/ "right? "

    Adobe Muse automatically inserts the tags for the version of phone as " " http://j-26.com/ "is there a way to fix this or should I switch my www.j-26.com redirect to j - 26.com? "

    It's a kind of confusion so I hope it made sense.

    Muse is to use what you entered the download to the FTP host domain... or export as HTML dialog boxes.

  • Anyone use the &lt; cfdocument &gt; tag with a &lt; cfloop &gt;

    Anyone use the < cfdocument > tag with a < cfloop >

    I'm generating more documents like this.

    < cfloop query = "myquery" >

    < cfdocument type = pdf >

    < html >... .HTML code here... < html >

    < / cfdocument >

    < / cfloop >

    But only the first document is generated in the browser?



    My requirement that I want to create multiple PDF and publish to folder and zip folder so that the user can able to download the ZIP file


    Thanks in advance

    My requirement that I want to create multiple PDF and publish to folder and zip folder so that the user can able to download the ZIP file

    (1) create a folder named, say, docsDir, in the current directory.

    (2) create PDF files, using suggestion of Eddie Lotter, name each file dynamically and store them in the folder docsDir.

    Insert here the code to generate the content of #filename # .

    (3) zip file, docsDir, store the resulting file, docsDir.zip, in the current directory.

  • Insert the code

    Hi all, I know that I can insert code but I want to be much more accurate where it is inserted (as before the tag "body" closed, for example), and I would like to modify my code directly into a project that I created in the design.

    Is it possible to insert the code between the specific and directly modify the code for an existing project? Thank you!

    Hello

    It would depend on what you insert and where, because there is no hard and fast rule to insert html, if a part of the code is for the head, then he would go to headrest with metadata option, but if it is a plain insert html, so we can insert on a page using object > insert HTML code.

    About the html editing, if any element of page inserted through HTML, then you can right click on this object and modify html.

    Thank you

    Sanjit

  • CF extra addition &lt; html &gt;, &lt; head &gt; and the &lt; body &gt; tags pages

    I had problems with my titles not appearing is not on my pages of CF. Finally, I looked at the source of the page in the browser and found that CF is the extra insertion < html >, < head > and < body > tags at the beginning of the pages. (see examples below). I'm sure it's the CF engine that did this because I took a cfm page and just change the extension of html and everything worked fine (except the CF code). There is no additional tag inserted and the titles appear. I also noticed that the CF engine seems to be adding the first line <! DOCTYPE HTML... >

    Does anyone know why this might be happening?

    Thank you

    David

    SEE Page - notice of the additional tags in red

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".


    <html >

    <head >

    <title >without title < /title >

    < /head >


    <body >



    < /body >

    < /html >

    <html>

    <head>


    "
    <style type="text/css"> ".

    <!--


    BODY
    {
    make-weight: normal;
    do-size: 10pt;
    do-family: Arial;
    background-color: white;
    text-decoration: none
    }


    Same page with the extension changed to html - code is a little different because the style sheet has not loaded because it uses a cfinclude

    <html>

    <head >


    "
    <cfinclude template="fdp_style_sheet.html"> ".


    "
    <meta http-equiv="Content-Type" content="text/html; charset = iso-8859-1"> " "

    <title >connection < /title >


    "<script type="text/javascript"> ".

    If ($_SERVER ["HTTPS"]! = "on")
    {
    header ("Location: https://".) $_SERVER ['HTTP_HOST']. ($_SERVER ["REQUEST_URI"]);
    Exit();
    }
    < /script >


    "<script language="JavaScript" src="webbug.js">< /script > " "

    < /head>


    "" <body onload= "writeBug();" marginHeight= "0" ' marginWidth do= '0' > ' "

    Take a look at your file Application.cfm or Application.cfc, you have probably the code in there (Application.cfc/cfm works first on each page request)

  • I inserted the library items then stuff disappeared

    Hello

    .. Sorry people Im a beginner,.

    I use mx2004 I help a charity remake their website and keep the current up-to-date.

    I started to insert library items in the site existing pages (all of which are table according to) some pages seem to be good

    but others show a blank page when I preview the.

    Firefox is the only browser it seems to be ok in IE, Opera, Safari and chrome show nothing

    except IE, which shows the background color of thr

    Ive got a hunch that ive inserted the LBI in the wrong place or something

    http://www.inclusiongroup.org.UK/inclusion2/public/pages/PCP.htm

    Here is the link

    Thank you

    You have a fence missing comment tag at the bottom of the style sheet embedded in the top of the page.

    
    
    

Maybe you are looking for

  • I clicked on the download button, click Run, click on install and then run the download screen and never finished.

    I ask myself this question before, but no response. This means that I can not even access my banking online. Any ideas?I have run the download screen for more than 2 hours, but had to call it even if not to exceed my data plan. Of course, this should

  • Why flickr does not work with firefox

    I'm trying to copy images/textures on flickr via a right click on the photo. I don't get the option to see all the dimensions of the image and/or download it or copy the image. These aren't protected files, the owner is available for free to anyone w

  • Why Norton Toolbar will not work with Firefox 23.0.1?

    Norton Toolbar 2013.4.1.2 is disabled and there is no option to turn it on. I've updated my Norton 360 with all latest updates. Norton site says that it has updated its software to be compatible with Firefox 23. Thank you in advance,Larrey

  • Camera GigE of NI VBAI lost packets

    We run VBAI on a fast PC with an Intel Pro/1000 card and a switch GigE of jumbo-frame to a large number of Basler Ace GigE cameras. It is understandable that multiple cameras cannot transfer complete images to the PC to the full flow of 1000 MHz beca

  • Blue screen of death: stop error: 0X000000CE

    Hi, I think I got a bad virus on my computer that's all waste.  First of all, it all started when I clicked on a link, while the Christmas on Black Friday shopping. Then I got a download of unwanted software, called system difficulty, (the small icon