javascript - 如何默认显示剑道内联编辑器工具栏

标签 javascript jquery kendo-ui

我正在使用 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/

相关文章:

javascript - Flask:为什么定义变量时ajax数据的内容会改变?

javascript - 每次 session /访问弹出一次

datasource - Treeview 的 Kendo 分层数据源,过滤到选中的节点

javascript - 如何判断页面是否处于打印 View 中?

javascript - Webpack-dev-server 找不到模块

javascript - setBackground Fabric.js : CORS problems

jquery - KendoComboBox MVC 查找值,如果存在则选择它,如果不存在则选择其他值

javascript - 如何消除 Bootstrap 中列排序之间的差距

javascript - jquery中的Ajax调用刷新Django中的数据库模型

kendo-ui - Kendo UI DatePicker - 获取先前的值