Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    8,414

    Question HTML Hyperlink Text Copy & Paste

    Dear Xara...

    I wanted to copy the Thread title here (https://www.talkgraphics.com/showthr...lected-WDP-V15) for an example of embedded text in a Text Inside Shape.

    How did the original HTML morph so much with so many duplicated SPANs?

    Code:
    <h1>
            Thread: <span class="threadtitle"><a href="showthread.php?79633-Shape-Text-is-underlined-but-underline-is-not-selected-WDP-V15" title="Reload this Page">Shape Text is underlined but underline is not selected.... WDP V15</a></span>
        </h1>
    Code:
    <div class="xr_group">
     <span class="xr_ar" style="left:185px;top:521px;width:412px;height:7px; background-color: #FFFFFF;"></span>
     <span class="xr_ar" style="left:185px;top:521px;width:22px;height:7px; background-color: #FFFFFF;"></span>
     <div class="xr_txt xr_s2" style="position: absolute; left:185px; top:527px; width:22px; height:10px;">
      <span class="xr_tl xr_s2" style="top: -5.71px;">Thread:</span>
     </div>
     <span class="xr_ar" style="left:207px;top:521px;width:2px;height:7px; background-color: #FFFFFF;"></span>
     <span class="xr_ar" style="left:207px;top:521px;width:2px;height:7px; background-color: #FFFFFF;"></span>
     <div class="xr_txt xr_s2" style="position: absolute; left:207px; top:527px; width:2px; height:10px;">
      <span class="xr_tl xr_s2" style="top: -5.71px;">&nbsp;</span>
     </div>
     <span class="xr_ar" style="left:208px;top:521px;width:190px;height:7px; background-color: #FFFFFF;"></span>
     <span class="xr_ar" style="left:208px;top:521px;width:190px;height:7px; background-color: #FFFFFF;"></span>
     <span class="xr_ar" style="left:208px;top:521px;width:190px;height:7px; background-color: #FFFFFF;"></span>
     <div class="xr_txt xr_s3" style="position: absolute; left:208px; top:527px; width:189px; height:10px;">
      <span class="xr_tl xr_s3" style="top: -5.71px;">Shape Text is underlined but underline is not selected.... WDP V15</span>
     </div>
    </div>
    and why did the space get forced into its own clutch of HTML?

    The H1 tag was not copied into the existing code at all and I gained two new text styles instead.

    The whole point of the exercise was to add in the hyperlinked text for the text and its hyperlink, which did not get added.

    Acorn
    Acorn - My currently active Xara software: occasionally serviced XDPX, purposely unserviced XDPX12 & XDPX11 (32/64-bit), unserviced XWD Premium 15 & 12, XPGD10, X3D7 and lots of 'permanently-owned' licences back through time (to CC's Artworks)

  2. #2
    Join Date
    Nov 2013
    Location
    Hertfordshire, UK
    Posts
    811

    Default Re: HTML Hyperlink Text Copy & Paste

    It's a horrible way to code but it ensures everything is WYSIWYG.

    There is better ways to do it but we don't currently have the manpower to rewrite the entire HTML filter. It is on our list to do but keeping in mind the idea of Xara isn't to produce editable HTML code. Just code that works (not nicely.. but works still).

    One day Acorn.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    8,414

    Default Re: HTML Hyperlink Text Copy & Paste

    Quote Originally Posted by Rob-Xar View Post
    It's a horrible way to code but it ensures everything is WYSIWYG.
    There is better ways to do it but we don't currently have the manpower to rewrite the entire HTML filter. It is on our list to do but keeping in mind the idea of Xara isn't to produce editable HTML code. Just code that works (not nicely.. but works still).
    One day Acorn.
    Rob, your honesty is showing again.

    Some time back reviewers of v6 were very scathing of the HTML Xara generated. I have been following the small changes made across the years that do little.
    I have suggested adding a class for each object that shows which layer it is on. To assist debugging alone, this would be worth it.
    Text alignment is another ongoing issue that disproves Xara's WYSIWYG mantra.

    I appreciate it is a big push to separate content from behaviour but that is the direction of travel you need to follow.

    Acorn
    Acorn - My currently active Xara software: occasionally serviced XDPX, purposely unserviced XDPX12 & XDPX11 (32/64-bit), unserviced XWD Premium 15 & 12, XPGD10, X3D7 and lots of 'permanently-owned' licences back through time (to CC's Artworks)

  4. #4
    Join Date
    Nov 2013
    Location
    Hertfordshire, UK
    Posts
    811

    Default Re: HTML Hyperlink Text Copy & Paste

    It's also hard to market. If we spend all our time on making the HTML nice, it means we're spending no times on making new features which isn't very saleable.

    Ofc long term it's much better and we can develop better features but not my call to make unfortunately.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •