2016-07-11 10 views
2

Ich habe unten Code in meiner php Datei geschrieben. Ich habe Bild Option aber Bild hochzuladen ich URLWie man Browserdatei oder Bildknopf in Tinymce hinzufügt

tinyMCE.init({ 
     // General options 
     mode : "exact", 
     elements : "descp", 
     theme : "advanced", 
     plugins : "safari,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,wordcount", 

     // Theme options 
     theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", 
     theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", 
     theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", 
     theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak", 
     theme_advanced_toolbar_location : "top", 
     theme_advanced_toolbar_align : "left", 
     theme_advanced_statusbar_location : "bottom", 
     theme_advanced_resizing : true, 

}); 

hinzufügen müssen Ich bin nicht Durchsuchungsdatei Option auf die Ausführung bekommen

Antwort

-1

Fügen Sie diese Argumente mit anderen

tinymce.init({ 
    selector: 'textarea', // change this value according to your HTML 
    file_picker_callback: function(callback, value, meta) { 

    // Provide image and alt text for the image dialog 
    if (meta.filetype == 'image') { 
    callback('myimage.jpg', {alt: 'My alt text'}); 
    } 


    } 
}); 
+0

noch nicht Schaltfläche Durchsuchen bekommen –

0

können Sie externe Plugins verwenden Für den Upload von Bildern/Medien nach tinymce. openmanager ist eines der funktionierenden Plugins für den Upload von Bildern/Medien.

Versuchen Sie, diese https://github.com/rmorse/Open-Manager