Jump to content
php.lv forumi

tinyMCe vai ir droshi ?


dAivEd

Recommended Posts

Par otro:

Tas ar js jataisa, japanem textarean.text += 'smile' utt.

Edited by cucumber
Link to comment
Share on other sites

<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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...