drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Text Wrap Not Working

Open eightbit opened this issue 5 years ago • 5 comments

Preflight Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug Word wrap not working - see attached example.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Expect text to wrap to boundaries of text object.

Screenshots If applicable, add screenshots to help explain your problem. worWrapIssue.zip

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version [e.g. 13.7.3]

Desktop (please complete the following information):

  • OS: [e.g. Win10]
  • Browser [e.g. chrome, safari]
  • Version [e.g. [2004]](url

)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

eightbit avatar Sep 29 '20 14:09 eightbit

Hi,

would you like to add the whole link https://lacted.org/wp-json/wc/v2/products/?consumer_key=ck_52fe8090e45dc424f094a3237771a85a9a8b4a15&consumer_secret=cs_0038bf9e811dd1e958e772e6fc081faf45e20e08 as a label to a Text shape from a library on the left?

P.S since it is very long line, you could add a label and then link it (double click the label > Click Insert link on the right in Format panel > add URL and click "Apply".

Regards,

mararad avatar Oct 01 '20 09:10 mararad

No. I am just documenting our code, so I want it as a text field. Curiously, it does break at the question mark, is there a reason it won't wrap through the rest of the string? Experimenting further, I see that spaces are required to activate word wrap. I assume that is a choice by the coders.

eightbit avatar Oct 01 '20 16:10 eightbit

Thanks. Basically spaces are required and question mark (as a possible end of a sentence) can affect word wrapping. You could select text and in Property/Values change option under Text overflow but not sure if this suits your needs fully. options

mararad avatar Oct 05 '20 10:10 mararad

Not quite. I just want to wrap all of the text in the box. But it isn't a big deal...

eightbit avatar Oct 31 '20 16:10 eightbit

@davidjgraph is it closed? Cannot see word warping. I think the solution is still your video from 10 years ago. Shouldn,t we see the 'text wrap' check box in the text column? https://www.youtube.com/watch?v=dRdwUKUv2LU

berkdemir avatar May 22 '22 09:05 berkdemir

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 14:03 stale[bot]

I was hoping to use draw.io to diagram a JWT... but the long text of the encoded JWT won't wrap in a box. C'est dommaage, what a pity!

I need something like this to fit into a box and word wrap (but with no breaks):

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NBT3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36OPk6yJV_adQssw5x

tanberry avatar Mar 28 '23 22:03 tanberry

Try this via HTML style="word-break:break-all;"

Screenshot 2023-03-29 at 05 33 49

alderg avatar Mar 29 '23 03:03 alderg

Thanks so much @alderg I'll give that I try as soon as I can.

tanberry avatar Mar 30 '23 12:03 tanberry

Closing, workaround provided.

davidjgraph avatar Jun 18 '23 21:06 davidjgraph

The workaround provided does not properly wrap text. Is there another solution?

phwoo avatar Dec 04 '23 04:12 phwoo

@phwoo if you have a problem please open a new ticket. Otherwise, a single ticket becomes unmanageably long.

davidjgraph avatar Dec 06 '23 16:12 davidjgraph