2017-04-05 114 views
0

我用Froala編輯的富文本編輯器,Froala編輯圖像編輯選項

$(notesSelector).on('froalaEditor.initialized', function (e, editor) { 
    //set original html after loading 
    froalaInitialHtml = $(notesSelector).froalaEditor('html.get'); 
}); 

$(notesSelector).froalaEditor({ 
    key: 'XXXXXXXXXX', 
    toolbarButtons: ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertVideo', 'insertFile', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'], 

    toolbarButtonsXS: ['undo', 'redo' , '-', 'bold', 'italic', 'underline','insertImage'], 
    imageEditButtons:['imageInfo', 'imageAlign' ], 
    toolbarSticky: true, });` 

我期待圖像上下文菜單,但是當圖像被選擇

回答

0

有它們不會出現2可能的原因爲什麼沒有顯示圖像彈出:

  1. 您不包括圖像插件。確保你包含plugins/image.min.js文件和plugins/image.min.css文件。
  2. 頁面上有其他更高元素zIndex。當你在模態中使用編輯器時,這很可能發生。要克服它,請將編輯器zIndex option設置爲更高的值。