[ 本帖最后由 langhp 于 2017-10-31 09:24 编辑 ]\n\n以下代码报错:官方示例照抄没问题,谁能帮找下原因,谢谢!!去掉出错行,Ueditor显示没问题,但是tabstrip显示不了了。。。源码:
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:TabStrip ID="TabStrip1" Width="850px" Height="350px" ShowBorder="true" TabPosition="Top"
EnableTabCloseMenu="false" ActiveTabIndex="0" runat="server">
<Tabs>
<f:Tab ID="Tab1" Title="信息" BodyPadding="5px" Layout="Fit" runat="server">
<Items>
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="SimpleForm1"
LabelWidth="120px" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel1" ColumnWidth="100%" runat="server" ShowBorder="false"
ShowHeader="false">
<script type="text/plain" name="Editor1" id="Editor1">
<p>
FineUI(开源版)<br>
<br>
</script>
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:Tab>
<f:Tab ID="Tab2" Title="日志" BodyPadding="5px" runat="server">
<Items>
<f:Grid ID="Grid1" Title="Grid1" PageSize="10" ShowBorder="true" BoxFlex="1"
ShowHeader="false" runat="server" EnableCheckBoxSelect="False"
IsDatabasePaging="true" EnableColumnLines="true" EnableTextSelection="true" SortField="Operate_Time"
SortDirection="DESC">
<Columns>
<f:RowNumberField HeaderText="序号" Width="50px" EnablePagingNumber="true" />
<f:BoundField Width="100px" DataField="user_truename" HeaderText="用户" />
</Columns>
</f:Grid>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
</form>
<script type="text/javascript">
window.UEDITOR_HOME_URL = '<%= ResolveUrl("~/ueeditor/") %>';
</script>
<script type="text/javascript" src="../res/js/jquery.min.js"></script>
<script type="text/javascript" src="../ueeditor/ueditor.config.js"></script>
<script type="text/javascript" src="../ueeditor/ueditor.all.min.js"></script>
<script type="text/javascript"> var containerClientID = '<%= ContentPanel1.ClientID %>'; var editor;
F.ready(function () {
// 初始化
editor = UE.getEditor('Editor1', {
initialFrameWidth: '100%',
initialFrameHeight: 200,
autoHeightEnabled: false,
autoFloatEnabled: false,
focus: true,
onready: function () {
// 重新布局外部容器
F(containerClientID).updateLayout();
}
}); }); // 更新编辑器内容
function updateEditor(content) {
if (editor && editor.isReady) {
editor.setContent(content);
}
}
</script>
</body>
</html>
|