Это то, что все так долго желали?
Этот хак позволяет создавать таблицы в постах?
Описание говорит, что да.
-------------------------------------------------------------------------
This Hack is in BETA Status!
Version: 0.3
I have test it in vb3.5.0 / vb3.5.1 and it works perfectly!
Changelog:
*[12.11.2005] Version 0.3
- correct some code to insert the new vbcode tags
- build new bbcode cache
- set new permissions (only Admin, Mods and Supermods can use the popup)
On a german wbb board community
www.web-dynamic.de i found a little javascript code (Thanks to Snoopy for this nice code) - that can translate the given html code to bbcode - and here is now my vb3.5.x Version.
To see how this hack works: [ Flash DEMO ]
Description:
We all can include own vbcodes like [table], [td] or [tr] but it is very hard to create a table because you need a lot of code like the follow:
Quote:
Цитата:
|
[table=50%][tr=tcat][td]1[/td][td]2[/td][td]3[/td][/tr][tr=alt2][td]A[/td][td]B[/td][td]C[/td][/tr][tr=alt1][td]F[/td][td]E[/td][td]WE[/td][/tr][tr=alt2][td]2w[/td][td]dd[/td][td]w[/td][/tr][/table]
|
Permissions:
When a user create a new tablecode and after he had transfered the code to the editor, he can delete some tags and your forum looks very bad after he save the post - i have set the permissons for the Popup so that only Admins, Mods and Supermods can use the PopUp.
=> product-bbcode-table-03.xml (15.2 KB) = only admins & mods can use the PopUp
=> product-bbcode-table-03_no_perm.xml (15.0 KB) = all usergroups can use this Popup
Installation:
After the Product Import you must only upload a small gif file for the Editor (look at the Attachments)
(copy it to ..../YOURFORUM/images/bbcode_table.gif)
Known BUGS:
The transfer from the popup to the WYSIWYG Editor doesn´t work at this time - i have try to find the correct code but i have no more time now . So when you have any ideas please help me to fix it.
Here is the old code from vb3.0.x :
HTML Code:
Код:
var bname = navigator.appName;
if (bname == "Microsoft Internet Explorer")
{
var newins = opener.document.frames["htmlwindow"].innerHTML + insert;
opener.document.frames["htmlwindow"].innerHTML = newins;
opener.document.frames["htmlwindow"].focus();
self.close();
}
else
{
var newins = opener.htmlbox.body.innerHTML + insert;
opener.htmlbox.body.innerHTML = newins;
opener.htmlbox.body.focus();
self.close();
}
I hope somebody can change it to run in the vb3.5.1 WYSIWYG Editor