oneeyedkingmktg
MemberForum Replies Created
-
Well, spent all day but have something AWESOME for you guys:
I have a set of 17 icons in code to just cut and paste into the correct files!
you can get ALL the info HERE:
http://plucksource.com/resources/test-blocks/
Included are samples of each one, and instructions how to edit colors images, etc.
BTW this is my first attempt at a HACK!!
Wahooo, it works!
Thanks!!!
Figured it out!!!
you can see here:
http://plucksource.com/resources/test-blocks/
** don’t forget to copy your .png image 48×48 to the /js/buttons/ directory
in the style.css file you need to add/edit
.quote_block {
background: #679BCE url(js/buttons/quote.png) no-repeat scroll 10px 7px;
border: 1px solid #090988;
color: #030303;
}
in the functions.php you need to add/edit:
function quote_block_shortcode_handler( $atts, $content=null, $code="" ) {
return '<div class="quote_block">' . $content . '</div>';
}
add_shortcode( 'quote', 'quote_block_shortcode_handler' );
I edited the mce-shortcodes.js in the js directory added:
ed.addButton('quote', {
title : ed.getLang('grapheneshortcodes.errortitle', 'Add a quote message block'),
image : url+'/buttons/quote.png',
onclick : function() {
ed.selection.setContent('');Quote:' + ed.selection.getContent() + '
}
});but did not get the buttons added to the menu on the page/post edit.
Any ideas??
Viewing 2 posts - 1 through 2 (of 2 total)
