html
  • angularjs
  • tinymce
  • 2017-07-26 43 views 0 likes 
    0

    嘿超级简单的问题。有没有办法将superscipt和subscript按钮添加到TinyMCE编辑器。我目前正在使用它与AngularJS,所以我目前的格式是这样的:TinyMCE的Superscipt和下标按钮

    <textarea 
        ng-model="myModel" 
        options='{ 
         "type":"tinymce", 
         "config":{ 
         "plugins":["lists link image charmap print media save table template paste imagetools toc"], 
         "toolbar":"undo redo bold italic underline bullist link charmap"       
         } 
        }'> 
    </textarea> 
    

    与处理所有内容的指令。我知道我可以在“格式”下拉菜单下的菜单栏中获得上标和下标。但我需要它作为按钮。

    这是角包装我使用了tinyMCE:https://github.com/angular-ui/ui-tinymce

    回答

    0

    您需要添加superscriptsubscript到工具栏。例如:

    toolbar: [ 
        "superscript subscript...", 
        "undo redo bold..." 
    ], 
    
    相关问题