Home > Bridge, Tehnologie > bridge tinymce plugin

bridge tinymce plugin

December 11, 2007 Leave a comment Go to comments

n-am putut sa dorm azi noapte si am zis sa incep munca de adaptare a blogului meu cu ceva ff simplu si care imi va fi util pe viitor si anume sa vad cum se modifica editorul WYSWYG (what you see is what you get) al wordpress (tinymce) pentru a adauga noi facilitati.

Si prima facilitate la care m-am gandit a fost un mic plugin care sa-mi permita sa adaug usor (un singur click pe un buton) in pagina o dona de bridge si pozele cu culorile().

Pluginul este bazat pe un template gasit aici. Pentru a-l instala trebuie sa descarcati cele 2 fisiere zip pe care le gasiti mai jos si sa le dezarhivati in directoarele: wp-includes/js/tinymce/plugins (tinymce bridge plugin) si wp-includes/images (bridge icons.zip).

Mai trebuie ca in fisierul tiny_mce_config.php din wp-includes/js/tinymce/ sa modificati urmatoarele 2 linii:

1. din
$plugins = array(‘inlinepopups’, ‘autosave’, ‘spellchecker’, ‘paste’, ‘wordpress’,…);
in
$plugins = array(‘inlinepopups’, ‘autosave’, ‘spellchecker’, ‘paste’, ‘wordpress’,'dd’);
2. din

$mce_buttons_2 = apply_filters(‘mce_buttons_2′, array());
in
$mce_buttons_2 = apply_filters(‘mce_buttons_2′, array(‘dd_hand’,'dd_clubs’,'dd_diamonds’,'dd_hearts’,'dd_spades’));

Exemplu de dona adaugata:

  N
AKQ2
AK73
QJT76
 
W
J10
T432
A432
98765
  E
98
QJ85
5
432
  S
76543
9
K98
AKQJT
 
Categories: Bridge, Tehnologie
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.