Skip navigation.

Sign up | Lost password? | Help

Contridentuallity

Not a fact, a theory!?

Posts tagged with "plugins"

Wordpress : Using TinyMCE with your plug-in

, , , ...

Want to use TinyMCE with one of your Wordpress plugins?
Obviously you can include all the TinyMCE files in your plugin and use those, but you seriously don't have to, since Wordpress already has TinyMCE ready for you.

Btw...for those of you who don't know what TinyMCE is, it's a WYSIWYG (What You See Is What You Get) HTML editor for webpages. See the screenshot below :



Let's say that you have a plugin which creates a form in the administration panel, allowing the administrator to enter some text, even HTML with CSS into a textarea. You'll first need to include a reference to the "tiny_mce.js" file included with Wordpress.

<script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script>


Once you have done that, you'll need to initialize the TinyMCE class and tell it how to behave. See the code below. It tells TinyMCE to use the "advanced" theme and replace all elements with the "editorContent" ID with the TinyMCE User Interface. The code also specifies the WIDTH and the HEIGHT of the User Interface. There are many more parameters you can use, but you'll need to look at the TinyMCE documentation, since I don't really know many of them.

<script type="text/javascript">
<!--
tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "editorContent",
width : "565",
height : "200"
});
-->
</script>


Lastly, you'll need to put a TEXTAREA on the page somewhere which will be replace with the TinyMCE User Interface. It will be something like this :

<textarea id="editorContent"></textarea>


And that's just about it.
TinyMCE used inside of one of your own, custom Wordpress plugins.

Wordpress Tiger Admin : It Works!

, , , ...

The famous and fabulously beautiful Wordpress Tiger Administration theme works in Opera. Sad to say...they don't tell us that. They simply tell us that it works in Firefox. That sucks...

Anyways...here is a screenshot :



Case you are interested in downloading this for free, see the link below. It's very easy to install. You simply upload it as a plug-in and then activate it.

http://www.orderedlist.com

Enjoy it! I surely am! :smile:

Wordpress Makes My Tummy Tickle...

, , ,

I've always loved and respected Wordpress for what it is, but I never realized that it could be so extremely orgasmic. Yeah...I mean it. It really gives me the bumps. :D

So I've been working on this website for the past few days. Basically, I had to port a PSD template to Wordpress and set it up as a content management system. This is normal...I do it often.

The fun part of this project was that I had to code 2 custom plugins. Actually, it's difficult to give a count on the amount of plugins, since they are several components coupounded together to make a coupon/voucher system work.

Wordpress is amazingly powerful and will truly mean a great deal to the future of the net. I've tried many other pre-made, opensource content management systems (one of which was Joomla), but I was only disgusted by what I found, and kept telling myself that these people seriously need to consider recoding their software.

What are your Wordpress experiences?
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30