0
這裏財產「get_contentArea」我在調用這個方法我拉德編輯器不工作是禁用,工具和內容區也被禁止使用動態拉德編輯無法獲取的未定義或空引用
oEditor.OnClientLoad = "OnClientLoad()"
。
這裏是我的javascript函數
function OnClientLoad(editor) {
editor.get_contentArea().style.height = "417px";
// editor.getContentAreaElement().style.height = (417) + "px";
}
正在此錯誤 無法獲取的未定義或空引用屬性 'get_contentArea'
Dim oEditor As New Telerik.Web.UI.RadEditor()
oEditor.ID = sField
If bUnique = False Then oEditor.ID = sField & "[" & GetNextSeqNo.ToString & "]"
oEditor.Height = iHeight * 20
oEditor.Width = System.Web.UI.WebControls.Unit.Pixel(iUltimateWidth)
SetEditorProperties(oEditor)
Private Sub SetEditorProperties(ByVal oEditor As Telerik.Web.UI.RadEditor)
oEditor.OnClientLoad = "OnClientLoad"
'oEditor.ContentAreaMode = EditorContentAreaMode.Iframe
'oEditor.ContentAreaCssFile = "~/Scripts/thumb-scroller.css"
oEditor.ToolbarMode = EditorToolbarMode.Default
oEditor.EditModes = EditModes.Design
oEditor.NewLineMode = EditorNewLineModes.Br
Dim uploadImages As String() = New String() {"~/Temp/MMRImages"}
oEditor.ImageManager.ViewPaths = uploadImages
oEditor.ImageManager.UploadPaths = uploadImages
oEditor.ImageManager.MaxUploadFileSize = 2000000
oEditor.ImageManager.AllowMultipleSelection = False
oEditor.ImageManager.EnableAsyncUpload = True
oEditor.ImageManager.EnableImageEditor = False
oEditor.EnsureToolsFileLoaded()
如何添加此引用 請幫幫我
即使認爲同樣的問題 – Kangaroo 2015-03-31 13:28:20
你能在這裏粘貼更多的代碼嗎? – 2015-04-01 02:20:50
頁面上的其他任何javascript錯誤?有沒有我們可以看到的鏈接? 如果您完全刪除OnClientLoad事件處理程序會怎麼樣? – 2015-04-01 07:30:29