如何使用asp.net在CKEditor中使用PlaceHolder?

时间:2015-12-07 06:33:30

标签: javascript c# asp.net ckeditor

这是我的代码

config.js: -

CKEDITOR.editorConfig = function( config )
{
config.ToolbarLocation = 'None';
config.extraPlugins = 'newplugin';
config.contentsCss = '../ckeditor/mysitestyles.css';
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
    [
        ['Bold', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight',   '-', 'Link', 'Unlink', 'CreatePlaceholder'],
        ['Newplugin']
    ]
};

我在收费栏选项中放置了CreatePlaceholder,但该选项不会在CKEditor上呈现。

这是我的Default.aspx: -

<body>
<form id="form1" runat="server">
    <CKEditor:CKEditorControl ID="editor" CustomConfig="/ckeditor/config.js" runat="server" Height="500" EnableTheming="true">
    </CKEditor:CKEditorControl> </form>
  </body>

在上面的代码中,我想在ckeditor上显示占位符。

0 个答案:

没有答案