作者ivy0215 (焕羽)
看板Web_Design
标题[问题]有关FCKeditor的问题
时间Fri Sep 22 14:39:40 2006
想请问各位用过FCKeditor的大大们
我依照以下网站的教学使用FCKeditor
http://ajunlee.pbwiki.com/FckeditorIntegrationASPNet
但都显示错误
我是asp.net使用vb语法制作网页
以下是我不懂的地方:
在你的程式中动态新增编辑器
如果你是使用应用程式方式(虚拟目录),先在web.config中设定"Base path":
例如,如果你的FCKeditor路径为"c:/inetpub/wwwroot/virtualdir/FCKeditor/"
问题一:
就在web.config中新增下面这行:
(新增是要放在<system.web></system.web>中间,还是哪边)
<add key="FCKeditor:BasePath" value="~/FCKeditor/"></add>
问题二:
I use a session to set the filebrowsers path
, Add the session variable before you make the control
Session("FCKeditor:UserFilesPath") = "/virtualdir/userfiles/"
(session 是要我加在web.config里面吗?还是哪边?)
问题三:
Add the control to the page:
(完全不了解是要我放在HTML里,还是webform1.aspx.vb里,或是web.config里?)
Dim fckeditor As New FredCK.FCKeditorV2.FCKeditor
fckeditor.ImageBrowserURL = "
http://localhost/virtualdir/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx"
fckeditor.ID = "dynamicname"
fckeditor.Value = "the text you want in the FCK editor"
fckeditor.SkinPath = "skins/silver/"
fckeditor.ToolbarSet = "Default"
myForm.Controls.Add(fckeditor)
---------第一次发问,如有犯管规,请指正--------------
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.117.34.115