Opened 10 years ago
Closed 10 years ago
#13067 closed Bug (invalid)
oncklick function called before button is inserted in textaera
Reported by: | Heinz | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
For testing purposes I created a "marktime" plugin. In steps it should do following:
- Click the "M" button in the toolbar
- Insert a button in the textarea at the cursor position
- Clicking the button in the textarea
- Pop up an alert with the current date (dummy function)
But what happens is following :
- Click the "M" button in the toolbar
- The alert pop up showing the date
- The button is inserted int the textarea
- Clicking the button in the textarea does nothing
Weird though, after inserting the source code shows this :
<p><input onclick="undefined" type="button" value="click me to get the time" /></p>
see also the attached plugin.js
Attachments (4)
Change History (5)
Changed 10 years ago by
Attachment: | Step 1.png added |
---|
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.4.7 |
I answered to your question on SO - http://stackoverflow.com/questions/29125473/input-onclick-function-not-called
tl;dr Your code is incorrect.
Screenshot Step 1