Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-08-12 14:30:39

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Links in the editor

Trying a link in the xinha editor, like
       http://google.com/
results in this :
       http://mardklo.mine.nu/%5C%22http://www.google.se%5C%22
that is
       http://mardklo.mine.nu/\"http://www.google.se\"
with my url from the start.
Probably this is caused by some bad filtering; however I havn't changed the "factory settings" in the distribution
"Revision: 1263 Trunk (Wed, 12 May 2010 09:40:06 +1200)" -- not in this respect.
Some suggestions?
Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#2 2010-08-12 20:25:12

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

In WYSIWYG mode, add a link, now switch to text mode, if the link is broken now then the problem is in Xinha.  if it's not, then the problem is almost certainly in the server end with whatever you are doing with the output.


James Sleeman

Offline

#3 2010-08-13 01:19:29

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

Thanks James.
Yes the links seem to work as long as you don't save (that is submit) anything.  When I for example right click on the link and choose check link, everything works fine. 
But when I submit data, they are corrupted when I use a link. 
I think this is a special case of the problem of using double quotation marks in the editor (these marks are added by the xinha code for transforming links).   When I use dubble quotation marks in the editor submitted data become corrupted.  May be xinha has some filter avoiding this?
Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#4 2010-08-13 03:26:09

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

I don't think your problem is going to be to do with Xinha, look at your server code, and configuration.

My first guess is magic_quotes_gpc (although most people work around this, perhaps you forgot).


James Sleeman

Offline

#5 2010-08-13 07:10:54

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

Thanks again, James,
and right again!  When I put magic_quotes_gpc Off in the php.ini the link behaved ok.
But the problem with crap characters persisted, in fact everything including and after the beginning av link text in the xinha editor also appeared outside (above) the textarea field!  Same is true for both absolute and relative links.
When I filter away the enforced double quotation marks in the link the problem with crap reamins.  I do not have this kind of problems with other php-scripts (not using xinha).
So, something is still wrong... I like this editor in many other respects, so please give me some more clues!
Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#6 2010-08-13 20:24:17

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

Are you entizing your data correctly?

http://trac.xinha.org/wiki/Entize


James Sleeman

Offline

#7 2010-08-14 02:54:45

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

Thanks for your suggestion.
Yes, I have tested with and without entizing, in my case with
    htmlspecialchars($theXinhaText, ENT_QUOTES, "UTF-8")
but the crap outside is still there.
Any other having problems like this?
Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#8 2010-08-14 03:36:41

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

A more complete code excerpt is:
....
<!-- /////////////////////////////////////////////////////////////////////////////////
XINHA
-->
  <script type="text/javascript">
    _editor_url  = "./wysiwyg_editors/xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "sv";      // And the language we need to use in the editor.
    _editor_skin = "titan";   // If you want use a skin, add the name (of the folder) here
  </script>
  <script type="text/javascript" src="./wysiwyg_editors/xinha/XinhaCore.js"></script>
  <script type="text/javascript" src="./wysiwyg_editors/xinha/config4mardklo.js"></script>
<!-- <<< XINHA  --> 
....
<?php
....
echo '<tr>';
echo '<td colspan="7">';
  echo '<script type="text/javascript">';
  echo "Xinha._addEvent(window,'load', xinha_init);";
  // this executes the xinha_init function on page load
  // and does not interfere with window.onload properties set by other scripts
  echo '</script>';
  echo '<textarea id="myTextArea1" name="myTextArea1" rows="19" cols="70" style="width: 98%" >'.htmlspecialchars($theXinhaText, ENT_QUOTES,"UTF-8").'<textarea>';                                     
echo '</td>';                
echo '</tr>';                                    
....
?>
....


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#9 2010-08-14 05:48:30

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

That looks fine to me (verbosity of using all those echos aside !)

What EXACTLY is the contents of $theXinhaText.


James Sleeman

Offline

#10 2010-08-14 05:50:47

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

I suggest that you view the generated source of the page with the textarea/xinha on it and post here a minimal version of that generated source starting with <form and ending with /form> and including everything inside that.


James Sleeman

Offline

#11 2010-08-14 08:38:59

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

Thank you, James, for all help so long!
Here is the generated html code between the form-tags:

<form action="./att_fixa.php" id="frm_att_fixa" name="frm_att_fixa"><p class="mellanrubrikW">I WYSIWYG-editorn nedan (Xinha) får <i>inte</i> tecknet " (dubbelflopp) användas! Det skulle bryta textsträngen vid vidarebefordring.<br>Undvik också ' (enkelflopp), men använd gärna vanliga formateringstecken, svenska tecken, mm.                                         <a href="javascript:document.frm_att_fixa.submit();"><img src="./bilder/knappar/avbryt_64x24.png" border="0"></a></p></form>            <form action="./att_fixa_verkstall.php" id="frm_att_fixa_verkstall" method="POST" name="frm_att_fixa_verkstall">
            google (Sverige).  Efter jag, på förslag från <em>gogo</em> (James Sleeman) på xinha-forum, ställt om <em>magic_quotes_gpc</em> till Off i <em>php.ini</em> och startat om apache2-servern, försvann problemet med brutna länkar, <strong>Shift-Ctrl-länktryck</strong> gav önskad länk.  Emellertid kvarstår skittecknen, ovanför textarea. 
  <div> </div>"><table>
              <tbody><tr><td colspan="7" bgcolor="red" align="center"><b>Aktuell tråd & post för åtgärd som väljes i valboxen "Verkställ direkt". <i>OBS! Gör ev. ändringar innan valet!</i></b></td></tr>
              <tr>
                <td class="tabell-rubrik-intern" width="410">Rubrik för problem</td>
                <td class="tabell-rubrik-intern" width="30">IDnr</td>
                <td class="tabell-rubrik-intern" width="80">Datum</td>
                <td class="tabell-rubrik-intern" width="100">Fixare</td>
                <td class="tabell-rubrik-intern" width="80">Avslutat</td>
                <td class="tabell-rubrik-intern" width="80">Borttaget</td>
                <td class="tabell-rubrik-intern" width="170" align="center"><select id="atgard" name="atgard" onchange="javascript:document.frm_att_fixa_verkstall.submit()" ;=""><option value="0">Verkställ direkt</option><option value="redigera_posten">Redigera posten</option><option value="redigera_traden">Redigera tråden</option><option value="avsluta_posten">Avsluta posten</option><option value="avsluta_traden">Avsluta tråden</option><option value="bortmarkera_posten">Bortmarkera posten</option><option value="bortmarkera_traden">Bortmarkera tråden</option><option value="klargor_posten">Klargör posten</option><option value="klargor_traden">Klargör tråden</option><option value="radera_posten">Radera posten</option><option value="radera_traden">Radera tråden</option></select></td>   
              </tr>
<input id="idnr" name="idnr" value="3" type="hidden"><input id="rubrik80_old" name="rubrik80_old" value="Att fixa -- systemet för denna facilitet" type="hidden"><input id="beskrivning_old" name="beskrivning_old" value="<p>Länkning av dokument till denna editor fungerar otillfredställande!  Vid skapande av länken i editorn verkar allt ok, då vi högerklickar på länken och väljer <em>Kontrollera länk...</em>. Men då man spar ändringen bryts länken.  Till detta kommer att skittecken skrivs utanför (ovan) aktuell

textarea, länkens text och lite till.  Detta kan vara ett specialfall av problemen med floppar, eftersom link-funktionen (i XinhaCore.js) tillfogar dubbelfloppar runt länkadressen.  Här är en länk till <a href=" http:="" google.se="" type="hidden"><tr bgcolor="gray"><td width="410"><input size="43" name="rubrik80" id="rubrik80" value="Att fixa -- systemet för denna facilitet" type="text"></td><td width="30">3</td><td width="80"><input size="15" name="inlagt" id="inlagt" value="2010-08-14 14:26:00" type="text"></td><td width="100" align="center"><select id="fixare" name="fixare"><option value="0">VÄLJ !</option><option value="9999999999"></option><option value="1">lars</option><option value="4">mardklo</option><option value="2">pirjo</option></select></td><script type="text/javascript">document.getElementById("fixare").value = "1";</script><td width="80">0000-00-00 00:00:00</td><td width="80">0000-00-00 00:00:00</td><td></td></tr><tr><td colspan="7"><script type="text/javascript">Xinha._addEvent(window,'load', xinha_init);</script><table style="width: 840px; height: 300px;" class="htmlarea" border="0" cellpadding="0" cellspacing="0"><tbody><tr style="vertical-align: top;"><td style="height: 85px;" colspan="1"><div class="toolbar" align="left"><div style="height: 1px; width: 1px; line-height: 1px; font-size: 1px; clear: both;"></div><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><a class="button buttonDisabled" title="Maximera/Minimera WYSIWYG fönster" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -162px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><select disabled="disabled" class=" buttonDisabled" name="formatblock" style="width: auto;" title=""><option value="">— format —</option><option value="h1">Heading 1</option><option value="h2">Heading 2</option><option value="h3">Heading 3</option><option value="h4">Heading 4</option><option value="h5">Heading 5</option><option value="h6">Heading 6</option><option value="p">Normal</option><option value="address">Address</option><option value="pre">Formatted</option></select></td><td class="toolbarElement"><select disabled="disabled" class=" buttonDisabled" name="fontname" style="width: auto;" title=""><option value="">— font —</option><option value="arial,helvetica,sans-serif">Arial</option><option value="courier new,courier,monospace">Courier New</option><option value="georgia,times new roman,times,serif">Georgia</option><option value="tahoma,arial,helvetica,sans-serif">Tahoma</option><option value="times new roman,times,serif">Times New Roman</option><option value="verdana,arial,helvetica,sans-serif">Verdana</option><option value="impact">impact</option><option value="wingdings">WingDings</option></select></td><td class="toolbarElement"><select disabled="disabled" class=" buttonDisabled" name="fontsize" style="width: auto;" title=""><option value="">— size —</option><option value="1">1 (8 pt)</option><option value="2">2 (10 pt)</option><option value="3">3 (12 pt)</option><option value="4">4 (14 pt)</option><option value="5">5 (18 pt)</option><option value="6">6 (24 pt)</option><option value="7">7 (36 pt)</option></select></td><td class="toolbarElement"><a class="button buttonDisabled" title="Fet" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -72px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Kursiv" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -54px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Understruken" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -54px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Genomstruken" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -72px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Textfärg" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -72px; left: -72px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Bakgrundsfärg" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -72px; left: -54px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><div title="Nuvarande stil" class="indicator buttonDisabled">A</div></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Nedsänkt" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -72px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Upphöjd" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -54px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Vänsterjustera" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -18px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Centrera" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -36px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Högerjustera" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -36px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Marginaljustera" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -18px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Numrerad lista" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -72px; left: -18px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><select disabled="disabled" class=" buttonDisabled" name="listtype" style="width: auto;" title="Välj listtyp (för numrerade listor)"><option value="decimal">Decimaltal</option><option value="lower-roman">Små romerska siffror</option><option value="upper-roman">Stora romerska siffror</option><option value="lower-alpha">Små latinska bokstäver</option><option value="upper-alpha">Stora latinska bokstäver</option><option value="lower-greek">Små grekiska bokstäver</option></select></td><td class="toolbarElement"><a class="button buttonDisabled" title="Punktlista" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -72px; left: -36px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Minska indrag" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -36px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Öka indrag" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -18px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Vågrät linje" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -126px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga tecken" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/tango/16x16/apps/accessories-character-map.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga länk" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -126px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga bild" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -72px; left: -126px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Ångra kommando" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -90px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Upprepa kommando" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -108px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Markera allt" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -108px; left: -72px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Skriv ut" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -36px; left: -162px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Clean up HTML" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -90px; left: -126px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/iconsets/Tango/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Rensa inbäddad typsnittsinformation" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -90px; left: -108px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Rensa formattering" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -90px; left: -90px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Dela block" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_splitblock.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Vänster till höger" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -18px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Höger till vänster" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -36px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Visa källkod" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -18px; left: -144px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Hjälp" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -180px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Om denna editor" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -162px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga tabell" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -126px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Objektramar" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img style="position: relative; top: -54px; left: -144px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/ed_buttons_main.png"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Tabellegenskaper" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/table-prop.gif"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Egenskaper för rad" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/row-prop.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga rad före" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/row-insert-above.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga rad efter" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/row-insert-under.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Radera rad" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/row-delete.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Dela rad" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/row-split.gif"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga kolumn före" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/col-insert-before.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga kolumn efter" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/col-insert-after.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Radera kolumn" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/col-delete.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Dela kolumn" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/col-split.gif"></div></a></td></tr></tbody></table><table class="toolbarRow" style="float: left;" border="0px" cellpadding="0px" cellspacing="0px"><tbody><tr><td class="toolbarElement"><div class="separator"></div></td><td class="toolbarElement"><a class="button buttonDisabled" title="Egenskaper for cell" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-prop.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga cell före" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-insert-before.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Infoga cell efter" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-insert-after.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Radera cell" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-delete.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Slå samman celler" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-merge.gif"></div></a></td><td class="toolbarElement"><a class="button buttonDisabled" title="Dela cell" href="javascript:void(0)" style="display: block; text-decoration: none; direction: ltr;"><div class="buttonImageContainer" style="position: relative; overflow: hidden; width: 18px; height: 18px;"><img src="http://mardklo.mine.nu/wysiwyg_editors/xinha/plugins/TableOperations/img/cell-split.gif"></div></a></td></tr></tbody></table><div style="height: 1px; width: 1px; line-height: 1px; font-size: 1px; clear: both;"></div></div></td></tr><tr style="vertical-align: top;"><td style="height: 100px; display: none;" colspan="1" class="panels panels_top"></td></tr><tr style="vertical-align: top;"><td style="display: none; width: 200px;" class="panels panels_left"></td><td style="position: relative;"><iframe style="height: 193px; width: 840px;" class="xinha_iframe" id="XinhaIFrame_myTextArea1" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/popups/blank.html"></iframe><textarea class="xinha_textarea" spellcheck="false" id="myTextArea1" name="myTextArea1" rows="19" cols="70" style="width: 840px; display: none; height: 193px;"><p>Länkning av dokument till denna editor fungerar otillfredställande!&nbsp; Vid skapande av länken i editorn verkar allt ok, då vi högerklickar på länken och väljer <em>Kontrollera länk...</em>. Men då man spar ändringen bryts länken.&nbsp; Till detta kommer att skittecken skrivs utanför (ovan) aktuell
textarea, länkens text och lite till.&nbsp; Detta kan vara ett specialfall av problemen med floppar, eftersom link-funktionen (i XinhaCore.js) tillfogar dubbelfloppar runt länkadressen.&nbsp; Här är en länk till <a href="http://google.se/">google</a> (Sverige).&nbsp; Efter jag, på förslag från <em>gogo</em> (James Sleeman) på xinha-forum, ställt om <em>magic_quotes_gpc</em> till Off i <em>php.ini</em> och startat om apache2-servern, försvann problemet med brutna länkar, <strong>Shift-Ctrl-länktryck</strong> gav önskad länk.&nbsp; Emellertid kvarstår skittecknen, ovanför textarea. </p>
  <div> </div></textarea></td><td style="display: none; width: 200px;" class="panels panels_right"></td></tr><tr style="vertical-align: top;"><td style="height: 100px; display: none;" colspan="1" class="panels panels_bottom"></td></tr><tr style="vertical-align: top;"><td style="height: 22px;" colspan="1"><div class="statusBar" style="position: relative; white-space: nowrap; width: 842px;"><div style="position: absolute; right: 0pt; top: 0pt; padding: 3px 3px 3px 10px;" class="statusBarWidgetContainer"></div><span class="statusBarTree">Objekt: </span><span style="display: none;">Du befinner dig i texläge. Klicka på ikonen [<>] ovan för att växla tillbaka till WYSIWIG läge</span></div></td></tr></tbody></table></td></tr></tbody></table></form>
<div style="position: absolute; top: 0pt; left: 0pt; border: medium none; overflow: hidden; display: none; z-index: 1001;" class="xinha_dialog_background_greyout"></div><div class="modeless dialog CharacterMap" style="position: absolute; z-index: 1003; display: none; padding-bottom: 10px; width: 300px;"><h1 style="-moz-user-select: none;">Infoga tecken</h1><div><a href="javascript:void(0)" class="entity  dark">Ÿ</a><a href="javascript:void(0)" class="entity  light">š</a><a href="javascript:void(0)" class="entity  dark">@</a><a href="javascript:void(0)" class="entity  light">"</a><a href="javascript:void(0)" class="entity  dark">¡</a><a href="javascript:void(0)" class="entity  light">¢</a><a href="javascript:void(0)" class="entity  dark">£</a><a href="javascript:void(0)" class="entity  light">¤</a><a href="javascript:void(0)" class="entity  dark">¥</a><a href="javascript:void(0)" class="entity  light">¦</a><a href="javascript:void(0)" class="entity  dark">§</a><a href="javascript:void(0)" class="entity  light">¨</a><a href="javascript:void(0)" class="entity  dark">©</a><a href="javascript:void(0)" class="entity  light">ª</a><a href="javascript:void(0)" class="entity  dark">«</a><a href="javascript:void(0)" class="entity  light">¬</a><a href="javascript:void(0)" class="entity  dark">¯</a><a href="javascript:void(0)" class="entity  light">°</a><a href="javascript:void(0)" class="entity  dark">±</a><a href="javascript:void(0)" class="entity  light">²</a><a href="javascript:void(0)" class="entity  dark">³</a><a href="javascript:void(0)" class="entity  light">´</a><a href="javascript:void(0)" class="entity  dark">µ</a><a href="javascript:void(0)" class="entity  light">¶</a><a href="javascript:void(0)" class="entity  dark">·</a><a href="javascript:void(0)" class="entity  light">¸</a><a href="javascript:void(0)" class="entity  dark">¹</a><a href="javascript:void(0)" class="entity  light">º</a><a href="javascript:void(0)" class="entity  dark">»</a><a href="javascript:void(0)" class="entity  light">¼</a><a href="javascript:void(0)" class="entity  dark">½</a><a href="javascript:void(0)" class="entity  light">¾</a><a href="javascript:void(0)" class="entity  dark">¿</a><a href="javascript:void(0)" class="entity  light">×</a><a href="javascript:void(0)" class="entity  dark">Ø</a><a href="javascript:void(0)" class="entity  light">÷</a><a href="javascript:void(0)" class="entity  dark">ø</a><a href="javascript:void(0)" class="entity  light">ƒ</a><a href="javascript:void(0)" class="entity  dark">ˆ</a><a href="javascript:void(0)" class="entity  light">˜</a><a href="javascript:void(0)" class="entity  dark">–</a><a href="javascript:void(0)" class="entity  light">—</a><a href="javascript:void(0)" class="entity  dark">‘</a><a href="javascript:void(0)" class="entity  light">’</a><a href="javascript:void(0)" class="entity  dark">‚</a><a href="javascript:void(0)" class="entity  light">“</a><a href="javascript:void(0)" class="entity  dark">”</a><a href="javascript:void(0)" class="entity  light">„</a><a href="javascript:void(0)" class="entity  dark">†</a><a href="javascript:void(0)" class="entity  light">‡</a><a href="javascript:void(0)" class="entity  dark">•</a><a href="javascript:void(0)" class="entity  light">…</a><a href="javascript:void(0)" class="entity  dark">‰</a><a href="javascript:void(0)" class="entity  light">‹</a><a href="javascript:void(0)" class="entity  dark">›</a><a href="javascript:void(0)" class="entity  light">€</a><a href="javascript:void(0)" class="entity  dark">™</a><a href="javascript:void(0)" class="entity  light">À</a><a href="javascript:void(0)" class="entity  dark">Á</a><a href="javascript:void(0)" class="entity  light">Â</a><a href="javascript:void(0)" class="entity  dark">Ã</a><a href="javascript:void(0)" class="entity  light">Ä</a><a href="javascript:void(0)" class="entity  dark">Å</a><a href="javascript:void(0)" class="entity  light">Æ</a><a href="javascript:void(0)" class="entity  dark">Ç</a><a href="javascript:void(0)" class="entity  light">È</a><a href="javascript:void(0)" class="entity  dark">É</a><a href="javascript:void(0)" class="entity  light">Ê</a><a href="javascript:void(0)" class="entity  dark">Ë</a><a href="javascript:void(0)" class="entity  light">Ì</a><a href="javascript:void(0)" class="entity  dark">Í</a><a href="javascript:void(0)" class="entity  light">Î</a><a href="javascript:void(0)" class="entity  dark">Ï</a><a href="javascript:void(0)" class="entity  light">Ð</a><a href="javascript:void(0)" class="entity  dark">Ñ</a><a href="javascript:void(0)" class="entity  light">Ò</a><a href="javascript:void(0)" class="entity  dark">Ó</a><a href="javascript:void(0)" class="entity  light">Ô</a><a href="javascript:void(0)" class="entity  dark">Õ</a><a href="javascript:void(0)" class="entity  light">Ö</a><a href="javascript:void(0)" class="entity  dark">®</a><a href="javascript:void(0)" class="entity  light">×</a><a href="javascript:void(0)" class="entity  dark">Ù</a><a href="javascript:void(0)" class="entity  light">Ú</a><a href="javascript:void(0)" class="entity  dark">Û</a><a href="javascript:void(0)" class="entity  light">Ü</a><a href="javascript:void(0)" class="entity  dark">Ý</a><a href="javascript:void(0)" class="entity  light">Þ</a><a href="javascript:void(0)" class="entity  dark">ß</a><a href="javascript:void(0)" class="entity  light">à</a><a href="javascript:void(0)" class="entity  dark">á</a><a href="javascript:void(0)" class="entity  light">â</a><a href="javascript:void(0)" class="entity  dark">ã</a><a href="javascript:void(0)" class="entity  light">ä</a><a href="javascript:void(0)" class="entity  dark">å</a><a href="javascript:void(0)" class="entity  light">æ</a><a href="javascript:void(0)" class="entity  dark">ç</a><a href="javascript:void(0)" class="entity  light">è</a><a href="javascript:void(0)" class="entity  dark">é</a><a href="javascript:void(0)" class="entity  light">ê</a><a href="javascript:void(0)" class="entity  dark">ë</a><a href="javascript:void(0)" class="entity  light">ì</a><a href="javascript:void(0)" class="entity  dark">í</a><a href="javascript:void(0)" class="entity  light">î</a><a href="javascript:void(0)" class="entity  dark">ï</a><a href="javascript:void(0)" class="entity  light">ð</a><a href="javascript:void(0)" class="entity  dark">ñ</a><a href="javascript:void(0)" class="entity  light">ò</a><a href="javascript:void(0)" class="entity  dark">ó</a><a href="javascript:void(0)" class="entity  light">ô</a><a href="javascript:void(0)" class="entity  dark">õ</a><a href="javascript:void(0)" class="entity  light">ö</a><a href="javascript:void(0)" class="entity  dark">÷</a><a href="javascript:void(0)" class="entity  light">ø</a><a href="javascript:void(0)" class="entity  dark">ù</a><a href="javascript:void(0)" class="entity  light">ú</a><a href="javascript:void(0)" class="entity  dark">û</a><a href="javascript:void(0)" class="entity  light">ü</a><a href="javascript:void(0)" class="entity  dark">ý</a><a href="javascript:void(0)" class="entity  light">þ</a><a href="javascript:void(0)" class="entity  dark">ÿ</a><a href="javascript:void(0)" class="entity  light">Œ</a><a href="javascript:void(0)" class="entity  dark">œ</a><a href="javascript:void(0)" class="entity  light">Š</a></div><div style="position: absolute; top: 0pt; right: 2px;"><div class="closeButton"><span style="position: relative; top: -3px;" class="innerX">×</span></div></div><img style="position: absolute; top: 3px; left: 2px;" src="http://mardklo.mine.nu/wysiwyg_editors/xinha/images/xinha-small-icon.gif" class="icon"><div style="position: absolute; bottom: 0px; right: 0px; -moz-user-select: none;" class="resizeHandle"></div></div>

As you already seen the language in the user interface is Swedish, but I think this is unessential for the analysis..

Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

#12 2010-08-14 10:15:30

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Links in the editor

Observe your problem

<input id="beskrivning_old" name="beskrivning_old" value="<p>Länkning av dokument till denna editor fungerar otillfredställande!  Vid skapande av länken i editorn verkar allt ok, då vi högerklickar på länken och väljer <em>Kontrollera länk...</em>. Men då man spar ändringen bryts länken.  Till detta kommer att skittecken skrivs utanför (ovan) aktuell 

textarea, länkens text och lite till.  Detta kan vara ett specialfall av problemen med floppar, eftersom link-funktionen (i XinhaCore.js) tillfogar dubbelfloppar runt länkadressen.  Här är en länk till <a href=" http:="" google.se="" type="hidden">

Your hidden field called beskrivning_old (this is not part of Xinha) is incorrect.


James Sleeman

Offline

#13 2010-08-14 12:56:50

ekorre
Xinha Community Member
Registered: 2010-06-02
Posts: 14

Re: Links in the editor

Thank you very much, James!
Sometimes you don't see the obvious facts, one get "home blind".
I fetched the old value, called called beskrivning_old, not directly from a Xinha textarea, but from a mysql database table field, where a previous xinha-field value var stored.
This approach was because I wanted to compare to the new (xinha-field) value to decide if an database update is nessesary.  The new value was entizized, but not the old one.  I forgot that, shame at me.  Etizing this old value solved the problem. 
Thanks again!

Regards /Lars


OS Ubuntu 10.04 64 bit
AMD 64 AthlonX2
Apache2
Regards / Lars

Offline

Board footer

Powered by FluxBB