lib/convert_html.php の編集。
class Heading extends Element 内にある、
function toString()
{
return $this->msg_top . $this->wrap(parent::toString(),
'h' . $this->level, ' id="' . $this->id . '"');
}
を、次のように書き変える。
function toString()
{
//////////////////////////////////////////////////////////////////////////////
// paraedit.inc.php 用の変更
/*
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\"");
}
- ちょっと補足:改変3行目の後ろの方にあるid=の一文字前は半角の空白が一つあります。空白を入れ忘れると、通常ページのh2やh3等のタグが機能しなくなってしまいます・・ (T-T