Skip to main content
Known Participant
November 28, 2020
Question

Live view: split a paragraph, all about paragraphs

  • November 28, 2020
  • 3 replies
  • 1607 views

In the documentation for DW (when you can find it), regarding live view, it states DW will automatically insert paragraph tags when pasting text. Mine does not, no matter if I use CTRL-V or EDIT-PASTE. If I hit enter to start a paragraph in a blank doc to add my content, it inserts 2! Both have non-breaking spaces in them. Handy, having to remove the extra, then the space, then add my text. Making things far slower and complicated.

 

Then, there's the paragraph splitting, which is the main issue I'd love some help with. If I paste something in that needs to be broken into paragraphs, there's no way to do this that I could find other than manual code edits. In design view, it's place the cursor, hit enter, it splits it (end one, begin a new one). In live view, that same key makes it so you're editing that block/P. No keys I hit from there will split it into 2 as it does in design mode. Tried insert paragraph...it inserts a full pair at the start of the paragraph (or before/after, depending on choice).

 

Nothing I've tried will do the simple task of breaking the paragraph in two at the cursor. Clearly I've either missed something or this makes live edits fairly useless. Any suggestions? This paragraph split is the more important one. I can't always go to design view to edit content since that really blows things up and it's hard to work that way.

Any suggestions?

(Win 10, Dreamweaver 21, but this has been ongoing through many versions)

This topic has been closed for replies.

3 replies

wbearAuthor
Known Participant
November 28, 2020

Thanks for the replies!

This content in plain text, and pasted as such (text only, convert smart quotes, nothing else selected). If I take and paste the same into a text editor that can show all characters (including hidden ones), there are no surprises. If I take a brand new page in DW and paste just a few manually typed words (directly on the clipboard), it's the same result. Paste has no P tag pair. If I paste nothing, and simply hit the enter key once on a blank new page; 2 P tag pairs with non breaking spaces in it.

No validation errors.

Inconvenient that it's not inserting the tag, but the larger and more painful issue is not being able to split a paragraph in some convenient way. Hitting enter in design mode was simple; nothing like that in live mode?

Nancy OShea
Community Expert
Community Expert
November 28, 2020

From which app(s) are you copying formatted text? 

 

MS Office injects junk code into HTML files.  So I'm a little more protective of my code than Anissa. I prefer to use Edit > Paste Special > Text Only or Text with structure (paragraphs, lists...).  Basic formatting comes from my CSS.  I don't want help with that and would prefer to strip formatting before it ever reaches my HTML.

 

If you've been doing this awhile, your code may contain critical errors that need attention. 

Use the Validation service to check your code: 

Window > Results > Validation.  Click the triangle to check current document (see screenshot).

 

Post back if you need more help.

 

Nancy O'Shea— Product User & Community Expert
wbearAuthor
Known Participant
November 28, 2020

Nancy,

I feel the same about my code, but this is not an option in live view in mine. Paste special is greyed out (code or live view) until I switch to design mode.  

 

"I prefer to use Edit > Paste Special > Text Only or Text with structure (paragraphs, lists...).  Basic formatting comes from my CSS.  I don't want help with that and would prefer to strip formatting before it ever reaches my HTML."

Nancy OShea
Community Expert
Community Expert
November 29, 2020

@wbear,

Use Split view with Live.  Click inside the code panel to Paste Special.

DW 21.0 on Win10.

 

Nancy O'Shea— Product User & Community Expert
anissa_thompson
Community Expert
Community Expert
November 28, 2020

Hello!

I have a feeling we're missing a little bit of detail on the source of the content you're pasting... But in the meantime, let's start here:

 

Take a look at your Edit > Preferences > Copy/Paste setup, and make sure the "Text Only" is NOT your selection. I leave mine on "Text with structure plus basic formatting (bold, italic)" by default; if this is your current setting, you might want to dig deeper into how your source content (does it already have paragraph marks, unusual platform-specific markup, or MS Word styling?) - if so, check the other two boxes I indicated above ("Retain line breaks" and "Clean up Word paragraph spacing"). 

 

Hope this helps!

Hope this helps! Make sure to press "✔ Correct Answer" on this post if this answers your question. Happy Creating!Anissa • @anissat