10 Kasım 2011 Perşembe

Ckeditor araçlarını kodla oluşturmak

ckeditör kurulduktan sonra üzerinde görülecek olan düğmeleri kodla değiştirmek kolayca mümkün
örneğin bu kodlar page_load olayının içine yazılabilir
ckeditor.config.toolbar = new object[]
{
                    new object[] { "Source", "-", "Save", "NewPage", "Preview", "-", "Templates" },
                    new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "Print", "SpellChecker", "Scayt" },
                    new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" },
                    new object[] { "Form", "Checkbox", "Radio", "TextField", "Textarea", "Select", "Button", "ImageButton", "HiddenField" },
                    "/",
                    new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" },
                    new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" },
                    new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" },
                    new object[] { "BidiLtr", "BidiRtl" },
                    new object[] { "Link", "Unlink", "Anchor" },
                    new object[] { "Image", "Flash", "Table", "HorizontalRule", "Smiley", "SpecialChar", "PageBreak", "Iframe" },
                    "/",
                    new object[] { "Styles", "Format", "Font", "FontSize" },
                    new object[] { "TextColor", "BGColor" },
                    new object[] { "Maximize", "ShowBlocks", "-", "About" }
};

Bu sayede gelismis bir editore sahip olabilirsiniz.
Biraz daha basit bir şeyler isterseniz.
ckeditor_ozet.config.toolbar = new object[]
{
                    new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" },
                    new object[] { "Styles", "Format", "Font", "FontSize" },
                    new object[] { "TextColor", "BGColor" },
};

Hiç yorum yok:

Yorum Gönder