TypeError: c.lang.link is undefined with ckeditor
TypeError: c.lang.link is undefined with ckeditor
单击 Generate
按钮时出现以下错误
TypeError: c.lang.link is undefined
当我再次点击 Generate
按钮打开开发者工具时,这个错误消失了。
我的用户控件:
<asp:Button ID="btn_generate" runat="server" Text=" Generate" CssClass="btn btn-primary" OnClick="btn_generate_Click" /></td>
<div runat="server" visible="false" id="editor_pnl">
<textarea name="editor1" id="editor1" runat="server" ValidateRequestMode="Disabled" enableviewstate="true" rows="40" cols="60"></textarea>
</div>
<script>
var langConfig = document.getElementById('<%= hf_lang.ClientID %>').value;
CKEDITOR.replace('ContentPlaceHolder1_UC_HR_editor1', {
allowedContent: true,
height: '650px',
defaultLanguage: langConfig.split('|')[0],
contentsLangDirection: langConfig.split('|')[1]
});
</script>
So It's a weird behavior, the error appear if the developer tools is
closed!
包含控件的页面:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="ckeditor/ckeditor.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="elementscontainer">
<br />
<div class="center-block">
<uc:UC_HR runat="server" ID="UC_HR" />
</div>
</div>
</asp:Content>
只有优化版才会出现这种情况!,因此尝试使用未优化版后,一切正常,所以我认为这与优化过程有关。
单击 Generate
按钮时出现以下错误
TypeError: c.lang.link is undefined
当我再次点击 Generate
按钮打开开发者工具时,这个错误消失了。
我的用户控件:
<asp:Button ID="btn_generate" runat="server" Text=" Generate" CssClass="btn btn-primary" OnClick="btn_generate_Click" /></td>
<div runat="server" visible="false" id="editor_pnl">
<textarea name="editor1" id="editor1" runat="server" ValidateRequestMode="Disabled" enableviewstate="true" rows="40" cols="60"></textarea>
</div>
<script>
var langConfig = document.getElementById('<%= hf_lang.ClientID %>').value;
CKEDITOR.replace('ContentPlaceHolder1_UC_HR_editor1', {
allowedContent: true,
height: '650px',
defaultLanguage: langConfig.split('|')[0],
contentsLangDirection: langConfig.split('|')[1]
});
</script>
So It's a weird behavior, the error appear if the developer tools is closed!
包含控件的页面:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="ckeditor/ckeditor.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="elementscontainer">
<br />
<div class="center-block">
<uc:UC_HR runat="server" ID="UC_HR" />
</div>
</div>
</asp:Content>
只有优化版才会出现这种情况!,因此尝试使用未优化版后,一切正常,所以我认为这与优化过程有关。