Skip to main content
Participant
January 16, 2018
Answered

DW 2018 - using Properties panel for Format - puts tags in unexpected place...

  • January 16, 2018
  • 3 replies
  • 1295 views

I have a page on a site that I'm copying / pasting text from a .pdf file into a div.  The text is pasting into the .html file like this (bringing over <br> tags):

<div>

A HEADER HERE

Random text here <br>

More text here <br>

Some more text here <br>

                 

ANOTHER HEADER HERE

Random text here <br>

More text here <br>

Some more text here <br>

</div>

When I highlight the first bit, A HEADER HERE, and click the FORMAT drop down within the Properties panel and select an H tag, this is what it does:

<div>

<h6>A HEADER HERE

Random text here <br>

More text here <br>

Some more text here <br>

                 

ANOTHER HEADER HERE

Random text here <br>

More text here <br>

Some more text here <br> </h6>

</div>

And what I expect, what I believe used to happen when I had DW 2015 (I just updated to 2018), would be this:

<div>

<h6>A HEADER HERE</h6>

Random text here <br>

More text here <br>

Some more text here <br>

                 

ANOTHER HEADER HERE

Random text here <br>

More text here <br>

Some more text here <br>

</div>

I came back to edit / add that even if I paste the text into Dreamweaver from the .pdf to notepad, then to DW as plain text (no accompanying BR tags) it still does the same thing.  It puts the H tag at the start of the text I have highlighted, but puts the ending H tag at the end of all the text I just pasted... down to the next closing DIV.

    This topic has been closed for replies.
    Correct answer Nancy OShea

    I rarely copy text from Acrobat as it contains too many artifacts.   I prefer to copy text from the original document in it's native application -- MS Word, Photoshop, InDesign, or whatever...  In  DW, use Edit > Paste Special  and select text without formatting.

    3 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    January 17, 2018

    I rarely copy text from Acrobat as it contains too many artifacts.   I prefer to copy text from the original document in it's native application -- MS Word, Photoshop, InDesign, or whatever...  In  DW, use Edit > Paste Special  and select text without formatting.

    Nancy O'Shea— Product User & Community Expert
    B i r n o u
    Legend
    January 17, 2018

    what you got is a normal behavior... <br> is not at all an ending tag... it is  a Back Return in within a block tag, usually  a <p> paragraph tag... but in that case it is a simple free floating text...  I mean a floating text in within a parent container which is not a paragraph tag but a div tag.

    so is it a bug... I don't think so... when you copy text from Acrobat... it copy it using the 'visual' formatting and figure out the back return when the line visually go bak to the next line... but it doesn't end up as a structural line... so that's why the <br>

    solutions ?

    well it all depend about what you would like to get as structural aim ?

    so...

    either copy from acrobat in full text without any formatting

    or remove by a search and replace all the <br> but think anyway to add a <p> start wraping all the text

    or replace all the <br> by a </p><p>... and here too wrap the all things by a paragraph tags

    bkhandlonAuthor
    Participant
    January 17, 2018

    I did paste it without any structure... copied it from the .pdf, then pasted it into notepad, then took it from there and pasted it into Dreamweaver, into an existing DIV and got the same result. 

    Then I tried to highlight the bulk of the text to use the same method to put a P tag around it... and got the same exact result. 

    I don't recall this being how it worked in 2015.

    Jon Fritz
    Community Expert
    Community Expert
    January 16, 2018

    Mine does the same thing in CC2018, I'm pretty sure it's just another bug and should be reported/voted on here:

    Adobe Dreamweaver CC Bug Report

    I don't think I've ever used that Format menu though. When I want to wrap a selection in a given tagset, I do the following...

    1. Highlight the text
    2. Hit Ctrl + T
    3. Type the tag I want
    4. Hit Enter twice

    It's more steps, but when you get used to it, it's very, very quick for any tag you want to use (not just the H tags the Format menu gives you).