开发者

Sharepoint InputFormTextBox: cannot change text color

开发者 https://www.devze.com 2023-01-01 01:31 出处:网络
I have a custom sharepoint aspx form that has an InputFormTextBox with RichText property set to true.

I have a custom sharepoint aspx form that has an InputFormTextBox with RichText property set to true.

In browser when I change the color of the text I receive a javascript error:

Message: 'g_elemRTELastTextAreaConverted' is null or not an object 开发者_如何学CLine: 2509 Char: 3 Code: 0 URI: http://myhost/_layouts/1033/form.js

what can be the reason for this


Ok I found it.

In my code behind i used to refrence the scripts like this:

string script2="<script type=\"text/javascript\"language=\"javascript\"
src=\"/_layouts/1033/init.js\"></script>";
string script3="<script type=\"text/javascript\" language=\"javascript\" src=\"/_layouts/1033/core.js\"></script>";
string script4="<script type=\"text/javascript\" language=\"javascript\" src=\"/_layouts/1033/form.js\"></script>";

            cs.RegisterStartupScript(this.GetType(), "key2", script2, false);
            cs.RegisterStartupScript(this.GetType(), "key3", script3, false);
            cs.RegisterStartupScript(this.GetType(), "key4", script4, false);

when I removed these references everything worked fine thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消