Options

Bug in Textbox with Links

phaserbeamphaserbeam Registered Users Posts: 452 Major grins
edited October 6, 2013 in Bug Reporting
How to reproduce:
- Add a textbox to your site
- Add some Text, add a blank and then add a link. Everything in one line.
- If you want, add some more text after the link.
- Apply changes.

Blanks in front of a link will get removed. Text which is following a link might be removed completely.

Click on the Textbox to edit its content. The word before the link is now next to the link itself, the previously added blank really got removed.

See screenshot.

Comments

  • Options
    dereksurfsdereksurfs Registered Users Posts: 286 Major grins
    edited August 3, 2013
    Yep, I noticed that too. Here is a quick workaround until it gets fixed:

    Use &nbsp for an extra space. It tried and it works fine.
  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited August 3, 2013
    Looks like just adding 2 or 3 spaces works.
    Couldn't get   to work
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    paulbrockpaulbrock Registered Users Posts: 515 Major grins
    edited August 4, 2013
  • Options
    dennismullendennismullen Registered Users Posts: 709 Major grins
    edited August 5, 2013
    And everything can not be centered.

    Cheers,
    See my gallery at http://www.dennismullen.com
  • Options
    bwgbwg Registered Users, Retired Mod Posts: 2,119 SmugMug Employee
    edited August 6, 2013
    phaserbeam wrote: »
    How to reproduce:
    - Add a textbox to your site
    - Add some Text, add a blank and then add a link. Everything in one line.
    - If you want, add some more text after the link.
    - Apply changes.

    Blanks in front of a link will get removed. Text which is following a link might be removed completely.

    Click on the Textbox to edit its content. The word before the link is now next to the link itself, the previously added blank really got removed.

    See screenshot.

    This bug has been fixed. If you currently have any squished links, you'll need to edit the text block, fix the spacing and re-save.
    Pedal faster
  • Options
    bwgbwg Registered Users, Retired Mod Posts: 2,119 SmugMug Employee
    edited August 6, 2013
    And everything can not be centered.

    Cheers,

    we're working on making this behavior better, but for now you have to have some text selected for the justification to work.
    Pedal faster
  • Options
    dennismullendennismullen Registered Users Posts: 709 Major grins
    edited August 6, 2013
    bwg wrote: »
    we're working on making this behavior better, but for now you have to have some text selected for the justification to work.

    I just retested it in case you have made an improvement. It still will not justify center no matter what I do.

    Cheers,
    See my gallery at http://www.dennismullen.com
  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited August 6, 2013
    bwg wrote: »
    we're working on making this behavior better, but for now you have to have some text selected for the justification to work.
    I see align text left, right and center but no justify?
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    bwgbwg Registered Users, Retired Mod Posts: 2,119 SmugMug Employee
    edited August 6, 2013
    I just retested it in case you have made an improvement. It still will not justify center no matter what I do.

    Cheers,

    can you provide any more details? Once I select a bit of text, things center fine for me.

    http://screencast.com/t/9YOOhIGT
    Pedal faster
  • Options
    phaserbeamphaserbeam Registered Users Posts: 452 Major grins
    edited August 7, 2013
    bwg wrote: »
    can you provide any more details? Once I select a bit of text, things center fine for me.

    http://screencast.com/t/9YOOhIGT

    Nice Screencast... but that seem to be different from what i'm getting here. Tested with Opera and Firefox and Text will not be centered. Yes, if i select all text in the textbox and select 'center' it will be shown centered inside of the textbox but unlike in your screencast it's not centered on the site. If i select DONE it stays left. See Screenshot taken with Firefox.

    Indeed the problem with no blanks in front of a link seem to be fixed.

    Not sure if this is a browser problem but when i add a link and add some more text right after the link this text will be cut off when i select "DONE". As a workaround i can hit ENTER and add some more text and remove the extra CR later.

    But at least i can not center any text. Using HTML right now to do that but too bad the accent color is not respected for links here.
  • Options
    AllenAllen Registered Users Posts: 10,012 Major grins
    edited August 7, 2013
    phaserbeam wrote: »
    ...Using HTML right now to do that but too bad the accent color is not respected for links here.
    The html box has a CSS tab connected to it, can't you add the color there?
    a { color: blue;}
    a:hover { color: red;}
    
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    phaserbeamphaserbeam Registered Users Posts: 452 Major grins
    edited August 7, 2013
    Allen wrote: »
    The html box has a CSS tab connected to it, can't you add the color there?

    Yes, that works... but i would like to have the accent color being used by default, since that can be changed using a theme without edit any HTML/CSS box.

    If you have a look to my site you'll see a text on top of the site with HTML and a white LINK and on bottom of the site is a TEXT with a accent colored LINK.

    As a workaround i'm using [a class="sm-accent" href=...] inside of the HTML box to let a link use the accent color. Not sure if that is a good idea, but at least this color will now change if i edit the accent color in my theme.
  • Options
    dennismullendennismullen Registered Users Posts: 709 Major grins
    edited August 7, 2013
    bwg wrote: »
    can you provide any more details? Once I select a bit of text, things center fine for me.

    http://screencast.com/t/9YOOhIGT


    It appears to work but after saving text is still to the left.
    Someone suggested it's browser specific.
    I use Firefox.

    I use css to get it to work but I'd like the accent color on a link I'm using.

    Cheers,
    See my gallery at http://www.dennismullen.com
  • Options
    dennismullendennismullen Registered Users Posts: 709 Major grins
    edited August 7, 2013
    I just tried editing a text on my ipad and it works fine.

    Cheers,
    See my gallery at http://www.dennismullen.com
  • Options
    phaserbeamphaserbeam Registered Users Posts: 452 Major grins
    edited August 7, 2013
    I just tried editing a text on my ipad and it works fine.

    Tested OperaNext on Windows and there it works also... so this really depends on the browser. I wonder why center in HTML works using the text-align:center element but pure text cannot be centered by all browsers.
  • Options
    jasonscottphotojasonscottphoto Registered Users Posts: 711 Major grins
    edited August 9, 2013
    phaserbeam wrote: »
    Yes, that works... but i would like to have the accent color being used by default, since that can be changed using a theme without edit any HTML/CSS box.

    If you have a look to my site you'll see a text on top of the site with HTML and a white LINK and on bottom of the site is a TEXT with a accent colored LINK.

    As a workaround i'm using [a class="sm-accent" href=...] inside of the HTML box to let a link use the accent color. Not sure if that is a good idea, but at least this color will now change if i edit the accent color in my theme.

    Oooh, can that (sm-accent) be done in the theme css somehow so I don't have to do it in every html box I make?
    Posts by Allyson, the wife/assistant...

    Jason Scott Photography | Blog | FB | Twitter | Google+ | Tumblr | Instagram | YouTube
  • Options
    jasonscottphotojasonscottphoto Registered Users Posts: 711 Major grins
    edited August 9, 2013
    Allen wrote: »
    I see align text left, right and center but no justify?

    +1 for justify
    Posts by Allyson, the wife/assistant...

    Jason Scott Photography | Blog | FB | Twitter | Google+ | Tumblr | Instagram | YouTube
  • Options
    ramdiskramdisk Registered Users Posts: 189 Major grins
    edited September 20, 2013
    text centers but I can't save changes it just hangs-up
    Nikon D70
    Nikkor 18-70mm
    Nikkor 70-300mm

    My Gallery

    Ahh! The joy of not much of anything.............
  • Options
    ramdiskramdisk Registered Users Posts: 189 Major grins
    edited September 27, 2013
    ramdisk wrote: »
    text centers but I can't save changes it just hangs-up


    Has there been any change to centering text within a text box?
    Nikon D70
    Nikkor 18-70mm
    Nikkor 70-300mm

    My Gallery

    Ahh! The joy of not much of anything.............
  • Options
    ramdiskramdisk Registered Users Posts: 189 Major grins
    edited September 28, 2013
    almost 2 months.....can someone from smugmug please give us some input on this issue or at less let us know your working on a solution
    Nikon D70
    Nikkor 18-70mm
    Nikkor 70-300mm

    My Gallery

    Ahh! The joy of not much of anything.............
  • Options
    mbonocorembonocore Registered Users Posts: 2,299 Major grins
    edited October 2, 2013
    ramdisk wrote: »
    almost 2 months.....can someone from smugmug please give us some input on this issue or at less let us know your working on a solution

    Are you referring to the Centering issue?
  • Options
    ramdiskramdisk Registered Users Posts: 189 Major grins
    edited October 6, 2013
    mbonocore wrote: »
    Are you referring to the Centering issue?

    Yes I am, on my home page if I try to center my copyright info, in the open edit of the text it centers but smugmug looks up and I have to shut down my browser (IE 10). Right now I added space to the front of the text to get it to center
    Nikon D70
    Nikkor 18-70mm
    Nikkor 70-300mm

    My Gallery

    Ahh! The joy of not much of anything.............
  • Options
    dennismullendennismullen Registered Users Posts: 709 Major grins
    edited October 6, 2013
    ramdisk wrote: »
    Yes I am, on my home page if I try to center my copyright info, in the open edit of the text it centers but smugmug looks up and I have to shut down my browser (IE 10). Right now I added space to the front of the text to get it to center

    Your fix isn't ideal as it will look different on different sized monitors.
    I used an html block like this as a work around....

    <p style="text-align: center;">© Dennis Mullen - all rights reserved</p>

    Cheers,
    See my gallery at http://www.dennismullen.com
  • Options
    ramdiskramdisk Registered Users Posts: 189 Major grins
    edited October 6, 2013
    Dennis thanks I'll give this work around a try
    Nikon D70
    Nikkor 18-70mm
    Nikkor 70-300mm

    My Gallery

    Ahh! The joy of not much of anything.............
Sign In or Register to comment.