Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
VF cmdinserttable
cyberleigh
I need to customize the "insert table" dialog box in my VF editor. Is this possible???
Any hints would be appreciated!
Find more posts tagged with
Comments
cyberleigh
Okay, I found the following on the ektron.com website. Can anyone tell me where to insert this code?
§ Specify default values for the Insert Table dialog.
The command cmdinserttable now accepts a text data argument of HTML table attributes that can be specified when sending the command in JavaScript. The Insert Table dialog will appear with default values as specified in the attributes string. You can also specify attributes that do not appear in the dialog.
The number of rows and columns can be specified using the pseudo attributes 'rows' and 'cols' respectively.
Example,
var strAttrs = "rows=6 cols=3 width='75%' bgcolor='cyan' border=2 borderColor=navy cellpadding=2 cellspacing=3 rules=cols";
eWebEditPro[sEditorName].ExecCommand("cmdinserttable", strAttrs, 0);
Michael
I would say that what you have there is some JavaScript. If you have a look in the VF developers guide there is a chapter on Customizable JavaScript files. Perhaps a file like ewebeditprodefaults will be the go?
Hope this helps.
Cheers, Michael