0

我将嵌入式 bespin 设置如下,效果很好:

_editorComponent = new bespin.editor.Component('editor', {
    language        : my_language,
    loadfromdiv     : true,
    set             : {
        fontsize        : 10,
        tabsize         : 4,
        highlightline   : 'on'
    }
});

和 html 部分:

 <div id='editor'>some code...</div>

通过遵循嵌入式 bespin 的代码,我能够找到 getContent 和 setContent,但是我在 Bespin 文档中找不到任何关于 Bespin 进一步实现的内容。

有没有人知道如何添加搜索和替换功能?例如从上面的例子:

_editorComponent.searchText("some_string");
_editorComponent.replaceText("some_string","another_string");
_editorComponent.focusText("some_string");

我们在 bespin 上是否有这样的命令,可以在我的应用程序中使用?

编辑对谷歌群组的相同问题的回应:

Bespin 曾一度支持搜索,但还没有回到重新启动的 Bespin。但这绝对是我要实现的列表中的功能之一;)

因此,目前只能通过解决方法来完成,任何解决方法都非常受欢迎。

4

1 回答 1

0

编辑:对谷歌群组的相同问题的回复:

Bespin 曾一度支持搜索,但还没有回到重新启动的 Bespin。但这绝对是我要实现的列表中的功能之一;)

于 2010-02-22T19:21:37.113 回答