Asp.net 为CKEditor指定自定义配置文件

Asp.net 为CKEditor指定自定义配置文件,asp.net,configuration,toolbar,ckeditor,Asp.net,Configuration,Toolbar,Ckeditor,我正在尝试将CKEditor添加到当前正在开发的页面中,但在获取自定义配置文件时遇到问题?我正在Visual Studio.NET 2008中使用CKEditor。我需要自定义显示的工具栏,因为Basic太小,而且太满会给用户提供大量的按钮 我在aspx页面中声明编辑器如下: <script type="text/javascript"> CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.Cli

我正在尝试将CKEditor添加到当前正在开发的页面中,但在获取自定义配置文件时遇到问题?我正在Visual Studio.NET 2008中使用CKEditor。我需要自定义显示的工具栏,因为Basic太小,而且太满会给用户提供大量的按钮

我在aspx页面中声明编辑器如下:

<script type="text/javascript">
    CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.ClientID %>"),
        { customConfig: 'myconfig.js' }
    );
</script>
CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    config.language = 'en';
    config.defaultLanguage = 'en';
    config.uiColor = '#000000';
};

CKEDITOR.config.toolbar_Full = [['Save', '-', 'Preview', '-' 'Print'],
    ['Undo', 'Redo'], ['Cut', 'Copy', 'Paste', 'PasteFromWord', 'SelectAll'], 
    ['Find', 'Replace'],
    '/',
    ['Bold', 'Italic', 'Unnderline', 'Strike', '-', 'Subscript', 'Superscript']];

我想我会发布一个解决方案。中的路径:

CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.ClientID %>"),        
  { customConfig: 'myconfig.js' }
CKEDITOR.replace(document.getElementById(“”),
{customConfig:'myconfig.js'}
来自网站的根目录,而不是相对于CKEditor中的目录

所以我的声明应该如下

<script type="text/javascript">
    CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.ClientID %>"),
        { customConfig: '/ckeditor/myconfig.js' }
    );
</script>

CKEDITOR.replace(document.getElementById(“”),
{customConfig:'/ckeditor/myconfig.js'}
);
希望我能在类似的船上帮助其他人,因为CKEditor上的文档有点薄弱