dede 编辑器默认使用源码的实现方法

Posted by admin on December 18, 2007 in 工作室链接, 网络教程 Views:668 views

更改文件

/include/htmledit/index.php

将<input name=”modeCheck” type=”radio” onClick=”Show_MyEditor();” value=”1″ checked></td>
<td width=”49″>可视化</td>

改为

<input name=”modeCheck” type=”radio” onClick=”Show_MyEditor();” value=”1″></td>
<td width=”49″>可视化</td>

<input type=”radio” name=”modeCheck” value=”0″ onClick=”ShowCode_MyEditor();”></td>
<td width=”62″>编辑源码</td>

改为

<input type=”radio” name=”modeCheck” value=”0″ onClick=”ShowCode_MyEditor();” checked></td>
<td width=”62″>编辑源码</td>

<script>Load_MyEditor();</script>

改为

<script>Load_MyEditor();ShowCode_MyEditor();</script>

可以实现。不过页面js 有点报错!但好像没影响功能!

不知何故,$isediter 参数无效。

看js,$isediter=0; 即为源码状态!

Comment

Log in or Register to post a comment.

More

Read more posts by admin

About the Author

seamaple

【网上聊天】经典讨论用语 Google测试百科全书Knol,挑战维基百科