禁用WordPress2.0的编辑预览功能

在我的插件列表里有这样一个插件:Frame Buster:防止Blog页面被流氓网站frame调用,不知道有没有其他人使用,这里忘记做了个解释,特此说明。

使用它后,在Wordpress2.0下,进行编辑日志时,会自动跳转出来,显示当前的单篇日志页面。这个原因是Wordprress2.0编辑日志时的预览功能使用的是frame,所以冲突就出现了。

解决方法有两种:
一是禁止这个插件,但有可能你的网站还是会被流氓网站直接用frame调用。
二是禁止Wordpress2.0编辑文章的预览:功能编辑WP安装目录下/wp-admin/post.php文件,删除82至87行即可。

?>
<div id=’preview’ class=’wrap’>
<h2 id=”preview-post”><?php _e(’Post Preview (updated when post is saved)’); ?> <small class=”quickjump”><a href=”#write-post”><?php _e(’edit &uarr;’); ?></a></small></h2>
<iframe src=”<?php the_permalink(); ?>” width=”100%” height=”600″ ></iframe>
</div>
<?php

这个编辑时的预览功能我真觉得它是个鸡肋,本来就是所见即所得的编辑器了,还有必要进行预览么?有必要么???

  • 2006.01.23 10:23, skii said:

    有道理,不知道兄弟能不能将下面这个编辑器,应用到WP2中?
    http://www.scn.com.ru/rte/

    [Reply]

  • 2006.01.23 12:54, hhalloyy said:

    没什么必要吧。那个编辑器很好?

    我都是用Zoundry编辑,然后发布的,推荐使用它。

    [Reply]




*You must say some Chinese, or just copy 你好! as begin.


This blog uses the CommentLuv plugin which will try and parse your sites feed and display a link to your last post, please be patient while it tries to find it for you.
2006-01-21
Home Loans