我正在使用 kendo 内联编辑器。我想最初显示编辑器工具栏,我想始终显示工具栏。并修复编辑器内的工具栏,而不是弹出式工具栏显示在外面。 对于上述情况, 默认情况下显示工具栏,我把这样
$(".k-window-titleless.k-editor-widget").show();
但它最初没有显示, 之后,要在编辑器中显示工具栏, 我喜欢
.k-editor-inline{
padding: 70px 5px 40px;
}
有了这个,高度增加了,但我无法在编辑器中显示工具栏。 如何解决这些问题?
最佳答案
在 focus 中使用 Kendo 构建显示编辑器的方法。
http://trykendoui.telerik.com/@vojtiik/eLaW
<div id="topEditor">
<h2>
Comprehensive HTML5/JavaScript framework <br />
for modern web and mobile app development
</h2>
<p>
Kendo UI is everything professional developers need
to build HTML5 sites and mobile apps. Today, productivity
of an average HTML/jQuery developer is hampered by
assembling a Frankenstein framework of disparate
JavaScript libraries and plug-ins.
</p>
<p>
Kendo UI has it all: rich jQuery-based widgets,
a simple and consistent programming interface,
a rock-solid DataSource, validation, internationalization,
a MVVM framework, themes, templates and the list goes on.
</p>
</div>
<script>
$(document).ready(function() {
var target = $("#topEditor").kendoEditor({
tools: [
"bold",
"italic",
"underline",
"strikethrough",
"justifyLeft",
"justifyCenter",
"justifyRight",
"justifyFull"
]
}).data("kendoEditor");
target.focus();
});
</script>
关于javascript - 如何默认显示剑道内联编辑器工具栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22955619/