作者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