I don’t think there is a plugin. I wrote an addition to the quicktags to display some pretty complex tables for a client who has a bridge blog and some investment blogs.
Here’s the “simplest” table one:
edButtons[edButtons.length] =
new edButton('ed_table'
,'Table'
,'<strong>*</strong>nn<table class="table" cellspacing="2" cellpadding="7">n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n</table>nn'
,''
);
This is a fairly simple table with areas for text entry noted by *. It should work if you simply plug it in just like that in quicktags.js. You can style it through the style.css of course. And you should be able to extrapolate from how that one’s laid out, how to change to the sort of tabular display you need.
Anywhere specific in the quicktags.js file? Or does it matter?
I generally put my additions at the top, as they’re the ones most likely to need editing/emending at some point. And that way the show up first in the row of buttons.
I’ll try that and come back if I have any questions/problems. Thanks, vkaryl.
Please do! Happy to help….
OK, I’ve got the change to my .js but how do I use it in a post?
From the write post screen…. in the quicktags bar (um. this WON’T work if you’re using the wysiwyg!), you should see a new button labeled “Table”.
I’m using a Mac so I guess I’m not getting that quicktags bar at all.
Oy. Ouch. The things we forget to ask the poster. I’m sorry, yes, I guess unless you have one of the new mac/intel munges you don’t get it. So all my posts in this topic were of no use whatsoever.
My aplogies…. the only thing I can think of for you to do then would be set up the table the way you want it, save it to a text file, then copy and paste from the text file whenever you need the table.
Well, fortunately the clients are the ones doing the editing and they’ll be on PCs for the most part. I do have Virtual PC so I could try that just for kicks.
But thanks for everything. I’m no programmer so any advice is extremely beneficial to me.