pukiwikiはパラグラフ単位の編集

 以前、pukiwikiはパラグラフ単位の編集が可能と考えたのは誤りでした。
pukiwikiのパラグラフ単位編集機能はデフォルトではなかったようです。

 wiki設定メモのpareeditによれば…

1:pukiwiki.php(1.4.4以上ではlib/pukiwiki.php)に追加

//メイン処理の直前に次の三行を追加(paraedit 0.6以降)
include_once(‘plugin/paraedit.inc.php’);
$post[“msg”] = _plugin_paraedit_parse_postmsg($post[“msg_before”],
$post[“msg”], $post[“msg_after”]);

2:スキン(skin/pukiwiki.skin.phpなど)の書換え

// を次のものに置換(1.4は二箇所)
echo _plugin_paraedit_mkeditlink($body); ?>

3:paraedit.inc.phpのコピー

4:paraedit.inc.phpファイルをダウンロードして、pluginディレクトリ(./plugin)にコピー

5:lib/convert_html.phpを編集

//convert_html() の書換え
//class Heading extends Block 内にある
//return $this->msg_top.$this->wrap(parent::toString(),’h’.$this->level,
// ” id=\”{$this->id}\””);
//を下の三行に置換
$paraedit_flag=(preg_match(“/^content_1_/”,$this->id))?’ paraedit_flag=on’:”;
return $this->msg_top.$this->wrap(parent::toString(),’h’.$this->level,”
id=\”{$this->id}\”$paraedit_flag”);

なる処理が必要との事。ちと、面倒か。
しかし、処理しておかないと後が更に面倒そうなので、来週末対応します。
今日はもう時間が取れそうにないです。
一日洗濯物で使ってしまった…。

This entry was written by Ez-man , posted on 日曜日 5月 21 2006at 05:05 pm , filed under 技術覚書 . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

コメントを残す

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>