dAivEd Posted July 15, 2009 Report Share Posted July 15, 2009 Labdien! Man ir sekojošs jautajums vai leitot TinyMc'e editoru piemēram komentaros ir droši ? Un ka tad ieslēgt BBCODE pluginu ? Quote Link to comment Share on other sites More sharing options...
dAivEd Posted July 15, 2009 Author Report Share Posted July 15, 2009 A un velviens jautajums, varbut kads zin, ka var uztaisit taa ka nospied uz smaidinju un ieksh textarea paraadas uzraksts "smile" ? Quote Link to comment Share on other sites More sharing options...
cucumber Posted July 15, 2009 Report Share Posted July 15, 2009 (edited) Par otro: Tas ar js jataisa, japanem textarean.text += 'smile' utt. Edited July 15, 2009 by cucumber Quote Link to comment Share on other sites More sharing options...
dAivEd Posted July 15, 2009 Author Report Share Posted July 15, 2009 Par otro: Tas ar js jataisa, japanem textarean.text += 'smile' utt. Tieshi textarean.text ? vai textarea.text ? jo man nesanak ;( un kaa tad jaraksta <a href="textarean.text += 'smile'"> smile </a> vai kaa ? Quote Link to comment Share on other sites More sharing options...
Jackal Posted July 15, 2009 Report Share Posted July 15, 2009 <script type="text/javascript"> function insert(image){ document.getElementById("text").innerHTML += image; } </script> <textarea id="text"></textarea> <img src="smile.jpg" alt="" onclick="insert('smile')" /> Nepārbaudiju, bet vajadzētu strādāt. Quote Link to comment Share on other sites More sharing options...
marcis Posted July 15, 2009 Report Share Posted July 15, 2009 Nebūs ne text, ne innerHTML, bet value -> document.getElementById("mans_textarea").value+= "smile"; Ar TinyMCE nav sanācis darboties, bet pieļauju domu, ka viņš neapstrādā īventu atribūtus. Tb, es varu uzrakstīt <b onload="document.location.href='http://php.lv/f/';">... Dati būs jāapstrādā jebkurā gadījumā, pirms to attēlošanas un saglabāšanas. Quote Link to comment Share on other sites More sharing options...
Jackal Posted July 15, 2009 Report Share Posted July 15, 2009 Es tik labi nepārzinu javascript'u un tavu piemēru neiztestēju, bet cik zinu textarea nav tāda atribūta kā value. Quote Link to comment Share on other sites More sharing options...
mefisto Posted July 16, 2009 Report Share Posted July 16, 2009 1. Lietotāju pievienotie komentāri tev ir jāapstrādā neatkarīgi no tā, kādā veidā tie tiek pievienoti. 2. bbCode pluginu pievieno šādi : http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode (neredzu gan jēgu tam) 3. http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions izskatās šitā. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.