Note that there are some explanatory texts on larger screens.

plurals
  1. POVbulletin Editor BBcodes JS Click event
    primarykey
    data
    text
    <p>I want to pop up an alert when a user clicks on a BBcode icon in editor. for example, I have a Spoiler BBcode and I want the event below for it :</p> <pre><code>onClick=alert("// Something Here")&gt; </code></pre> <p>Where should I add this event ?! where are the codes for a BBcode which exists in editor ?</p> <p>More explanation about the thing I need: I have a Spoiler which makes tag. I want to add an option for it like . "sth" is the string which users insert in a text input which has been alerted after they click on the BBcode icon in Editor. Then, the content will hide or show by clicking on "Sth"</p> <p>This is my Spoiler code :</p> <pre><code>&lt;div style="background-color: #fff; font-size: 1em;"&gt; &lt;div style="text-transform: uppercase;text-decoration:underline; font-size: 0.8em; font-weight: bold; display: block;"&gt; &lt;span onClick=" if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '&lt;a href=\'#\' onClick=\'return false;\'&gt;Hide&lt;/a&gt;'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '&lt;a href=\'#\' onClick=\'return false;\'&gt;Show&lt;/a&gt;'; }" /&gt; &lt;a href="#" onClick="return false;"&gt;Show&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="quotecontent"&gt; &lt;div style="display: none;"&gt;{param}&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload