Tiny MCEとPicasa webとで連携が必要になったので、とりあえずプラグインを作成してみた。
需要があるのかどうかわからんが、とりあえず公開。
インストール方法は以下の通り。
- ここからzipアーカイブをダウンロードして解凍する。
- 解凍したものを、tiny_mceフォルダのpluginsフォルダに設置する。
- エディタでpicasa.phpを開いて、行頭にある$default_user_idにPicasaのユーザIDを設定。
- tiny_mceを初期化するスクリプトのpluginsとbottonsにpicasaを追加。
tinyMCE.init({
mode: "textareas",
theme: "advanced",
theme_advanced_buttons1 : "bold,italic,underline,|,cut,copy,paste,|,image,picasa,|,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : false,
width: "100%",
height: "500px",
media_strict: false,
plugins : "media,picasa",
});


0 件のコメント:
コメントを投稿