#170 insert special Character in textarea

open
nobody
7
22 hours ago
2005-04-18
Daniel
No

I have written a patch to use instead of the
tiki-special_chars.php which resides in templates/
the files are not accessible, (and
tiki-special_chars.html is redundant) plus there is a
better solution:
the following lines can be inserted in the editpage.tpl
the character will then be inserted directly at the
point of the cursor position in the text with the same
function that the quicktags or smileys use. I have
inserted the thing as a tablerow directly in
tiki-editpage.tpl but it could be a separate template
with the textarea id (editwiki) replaced in the same
way that it is done with the quicktags (so that it can
be used in forumposts or any other textarea
<tr>
<td>
Special Characters
</td><td>
<b>&middot; AaA &middot;</b>
<a href="javascript:insertAt('editwiki','ร&#128;');"> ร&#128; </a>
<a href="javascript:insertAt('editwiki','ร ');"> ร </a>
<a href="javascript:insertAt('editwiki','ร');"> ร </a>
<a href="javascript:insertAt('editwiki','รก');"> รก </a>
<a href="javascript:insertAt('editwiki','ร&#130;');"> ร&#130; </a>
<a href="javascript:insertAt('editwiki','รข');"> รข </a>
<a href="javascript:insertAt('editwiki','ร&#131;');"> ร&#131; </a>
<a href="javascript:insertAt('editwiki','รฃ');"> รฃ </a>
<a href="javascript:insertAt('editwiki','ร&#132;');"> ร&#132; </a>
<a href="javascript:insertAt('editwiki','รค');"> รค </a>
<a href="javascript:insertAt('editwiki','ร&#133;');"> ร&#133; </a>
<a href="javascript:insertAt('editwiki','รฅ');"> รฅ </a>
<b>&middot; EeE &middot;</b>
<a href="javascript:insertAt('editwiki','ร&#136;');"> ร&#136; </a>
<a href="javascript:insertAt('editwiki','รจ');"> รจ </a>
<a href="javascript:insertAt('editwiki','ร&#137;');"> ร&#137; </a>
<a href="javascript:insertAt('editwiki','รฉ');"> รฉ </a>
<a href="javascript:insertAt('editwiki','ร&#138;');"> ร&#138; </a>
<a href="javascript:insertAt('editwiki','รช');"> รช </a>
<a href="javascript:insertAt('editwiki','ร&#139;');"> ร&#139; </a>
<a href="javascript:insertAt('editwiki','รซ');"> รซ </a>
<b>&middot; IiI &middot;</b>
<a href="javascript:insertAt('editwiki','ร&#140;');"> ร&#140; </a>
<a href="javascript:insertAt('editwiki','รฌ');"> รฌ </a>
<a href="javascript:insertAt('editwiki','ร');"> ร </a>
<a href="javascript:insertAt('editwiki','รญ');"> รญ </a>
<a href="javascript:insertAt('editwiki','ร&#142;');"> ร&#142; </a>
<a href="javascript:insertAt('editwiki','รฎ');"> รฎ </a>
<a href="javascript:insertAt('editwiki','ร');"> ร </a>
<a href="javascript:insertAt('editwiki','รฏ');"> ร </a>
<b>&middot; OoO &middot;</b>
<a href="javascript:insertAt('editwiki','ร&#146;');"> ร&#146; </a>
<a href="javascript:insertAt('editwiki','รฒ');"> รฒ </a>
<a href="javascript:insertAt('editwiki','ร&#147;');"> ร&#147; </a>
<a href="javascript:insertAt('editwiki','รณ');"> รณ </a>
<a href="javascript:insertAt('editwiki','ร&#148;');"> ร&#148; </a>
<a href="javascript:insertAt('editwiki','รด');"> รด </a>
<a href="javascript:insertAt('editwiki','ร&#149;');"> ร&#149; </a>
<a href="javascript:insertAt('editwiki','รต');"> รต </a>
<a href="javascript:insertAt('editwiki','ร&#150;');"> ร&#150; </a>
<a href="javascript:insertAt('editwiki','รถ');"> รถ </a>
<b>&middot; UuU &middot; </b>
<a href="javascript:insertAt('editwiki','ร&#153;');"> ร&#153; </a>
<a href="javascript:insertAt('editwiki','รน');"> รน </a>
<a href="javascript:insertAt('editwiki','ร&#154;');"> ร&#154; </a>
<a href="javascript:insertAt('editwiki','รบ');"> รบ </a>
<a href="javascript:insertAt('editwiki','ร&#155;');"> ร&#155; </a>
<a href="javascript:insertAt('editwiki','รป');"> รป </a>
<a href="javascript:insertAt('editwiki','ร&#156;');"> ร&#156; </a>
<a href="javascript:insertAt('editwiki','รผ');"> รผ </a>
<b>&middot; Other &middot; </b>
<a href="javascript:insertAt('editwiki','ยข');"> ยข </a>
<a href="javascript:insertAt('editwiki','ยฃ');"> ยฃ </a>
<a href="javascript:insertAt('editwiki','ยค');"> ยค </a>
<a href="javascript:insertAt('editwiki','ยฅ');"> ยฅ </a>
<a href="javascript:insertAt('editwiki','ร&#134;');"> ร&#134; </a>
<a href="javascript:insertAt('editwiki','รฆ');"> รฆ </a>
<a href="javascript:insertAt('editwiki','ล&#146;');"> ล&#146; </a>
<a href="javascript:insertAt('editwiki','ล&#147;');"> ล&#147; </a>
<a href="javascript:insertAt('editwiki','ร&#159;');"> ร&#159; </a>
<a href="javascript:insertAt('editwiki','ร&#135;');"> ร&#135; </a>
<a href="javascript:insertAt('editwiki','รง');"> รง </a>
<a href="javascript:insertAt('editwiki','ร&#145;');"> ร&#145; </a>
<a href="javascript:insertAt('editwiki','รฑ');"> รฑ </a>
<a href="javascript:insertAt('editwiki','รฝ');"> รฝ </a>
<a href="javascript:insertAt('editwiki','รฟ');"> รฟ </a>
<a href="javascript:insertAt('editwiki','ยฟ');"> ยฟ </a>
<a href="javascript:insertAt('editwiki','&lt;');"> < </a>
<a href="javascript:insertAt('editwiki','&gt;');"> > </a>
<a href="javascript:insertAt('editwiki','[');"> [ </a>
<a href="javascript:insertAt('editwiki',']');"> ] </a>
<a href="javascript:insertAt('editwiki','|');"> | </a>
<a href="javascript:insertAt('editwiki','(');"> ) </a>
<a href="javascript:insertAt('editwiki',')');"> ( </a>
<a href="javascript:insertAt('editwiki',''');"> ' </a>
<a href="javascript:insertAt('editwiki','&quot;');"> "
</a>
<a href="javascript:insertAt('editwiki','_');"> _ </a>
<a href="javascript:insertAt('editwiki','-');"> - </a>
<a href="javascript:insertAt('editwiki','*');"> * </a>
<a href="javascript:insertAt('editwiki','#');"> # </a>
<a href="javascript:insertAt('editwiki',';');"> ; </a>
<a href="javascript:insertAt('editwiki',':');"> : </a>
<a href="javascript:insertAt('editwiki','&amp;');"> &
</a> &middot;
</td>
</tr>

Discussion

  • Marc Laporte
    Marc Laporte
    2007-10-31

    • priority: 5 --> 7
     
  • Marc Laporte
    Marc Laporte
    2007-10-31

    Logged In: YES
    user_id=484395
    Originator: NO

    This is a great enhancement. Can you update it for the latest version and commit directly to TikiWiki?

    Thanks!

    M ;-)