none
tinyMCE toolbar置顶怎么解决? RRS feed

  • 问题

  • tinyMCE toolbar置顶怎么解决?
    以下是我的代码:
     tinyMCE.init({
      mode : "textareas",
      language : "zh",
      theme : "simple"
      theme_advanced_toolbar_location : "top"
     });

    我想定制的是如同Microsoft论坛的tinymce的功能


    做最好的自己
    2009年8月12日 16:00

答案

  • 你好 你说的置顶是什么意思呢?
    tinyMCE配置如下:
    tinyMCE.init({
             mode : "textareas",
            //定义显示类别
              theme : "advanced",
              //定义载入插件
              plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,
    advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,
    searchreplace,print,contextmenu,paste,directionality,fullscreen,
    noneditable,visualchars,nonbreaking,xhtmlxtras,template,
    imagemanager,filemanager", 
              //定义工具栏的位置
              theme_advanced_toolbar_location : "top",
              //定义工具栏工具的对其方式
              theme_advanced_toolbar_align : "left",
              //定义输入框下方是否显示状态栏,默认不显示
              theme_advanced_statusbar_location : "bottom",
              //定义是否可以改变输入窗口大小
              theme_advanced_resizing : true
                    });


    微软的配置你可以从Html中找出

    tinyMCE.init({
            mode: "none",
            theme: "advanced",
           
            plugins: "codeblock",
            codeblock_colorizeUrl: "/Forums/zh-CN/stats/colorize?locale=zh-CN",
            codeblock_langs: [
                { name: "未指定", value: "" },
                { name: "C#", value: "x-c#" },
                { name: "VB.Net", value: "x-vbnet" },
                { name: ".aspx", value: "x-aspx" },
                { name: ".aspx.cs", value: "x-aspx.cs" },
                { name: ".aspx.vb", value: "x-aspx.vb" },
                { name: ".ashx", value: "x-ashx" },
                { name: ".asax", value: "x-asax" },
                { name: "Html", value: "x-html" },
                { name: "Javascript", value: "x-js" },
                { name: "Sql", value: "x-sql" },
                { name: "Xml", value: "x-xml" }
            ],
           
            init_instance_callback: "Forums.Rte.customInitInstance",
            gecko_spellcheck: true,
            convert_urls: false,
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: true,
            theme_advanced_resize_horizontal: false,
            theme_advanced_buttons1: "bold,italic,underline,|,undo,redo,|,bullist,numlist,|,link,unlink,|,code,codeblock",
            theme_advanced_buttons2: "",
            theme_advanced_buttons3: "",
            forced_root_block: false,
            force_br_newlines: true,
            force_p_newlines: false,
            tab_focus: ':prev,:next',
            language: "zh"
        });


    注意这里mode: "none"

    Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!http://hi.baidu.com/1987raymond
    2009年8月13日 2:19
    版主