quicktags problem
-
Lawrence from Taibros.net was helping me setup a quicktag for a dropshadow effect but now that i’ve implemented it, I loose ALL of my quicktag links when I’m on the edit page. Let me show you first what i have in my css:
.img-shadow {
clear: both;
float:left;
background: url(wp-content/shadowAlpha.png) no-repeat bottom right
!important;
background: url(wp-content/shadow.gif) no-repeat bottom right;
margin: 20px 0 0 17px !important;
margin: 20px 0 0 8px;
}
.img-shadow img {
display: block;
position: relative;
background-color: #fff;
border: 1px solid #a9a9a9;
margin: -6px 6px 6px -6px;
padding: 4px;
}
and now my quicktags.js file. He told me to add:
edButtons[edButtons.length] =
new edButton(‘ed_pic_drop_shadow_left’
,’pic drop shadow left’
,'<div class=”img-shadow”>’
,'</div>’
,’p’
);
edButtons[edButtons.length] =
new edButton(‘ed_pic_drop_shadow_right’
,’pic drop shadow right’
,'<div class=”img-shadow”
style=”float:right;”>’
,'</div>’
,’p’
);
Again, now I have no buttons where the quicktags should be…only the quicktags link, linking back to the WP page describing them. I can delete that section from my qt.js and all is fine again, but of course, I want this to work. Thanks in advance.
- The topic ‘quicktags problem’ is closed to new replies.