2014-03-12 191 views
1

我正在使用AngularJS,NodeJS,mongoose,mongoDB等技術寫這個網頁。 在這個網頁中我有一個tinyMCE文本編輯器。現在,我發現這個編輯器能夠在其中獲得圖像,這讓人覺得很刺激。我讀過關於IMCE和iBrowser的內容,前者似乎只能在Drupal中工作,而後者我至今無法安裝,因爲我不知道他們在說「tinyMCE init代碼」時指的是什麼。將圖片上傳到tinyMCE

我的問題是:有沒有更好的方式上傳圖片到tinyMCE?或者本指南中提到的「tincMCE init代碼」是什麼:http://netwizards.co.uk/installing-ibrowser-in-tinymce/

回答

4

的「tinyMCE的初始化代碼」是在tinyMCE的被初始化代碼,即其中使用設置了什麼樣的插件,編輯屬性等請參閱此鏈接更多:

http://www.tinymce.com/wiki.php/Installation

當談到在該編輯器本身TinyMCE的網站上傳圖片說明:

How can I upload image files from my local computer? 

Short answer: You can't! 

Long answer: TinyMCE is just an editor to output (X)HTML code. It is by no means  
comparable to web editing desktop software such as Adobe Dreamweaver, Go Live! or  
Microsoft Web Expressions and the like. It runs on a user's browser (client-side) and  
not on a server. If you want to upload pictures to a server then you need a server-side 
component to process your image files. TinyMCE can't do that on its own since it doesn't 
run on the server but on the user's browser. 

你可以給Froala所見即所得一試: http://editor.froala.com/

而且,這裏是從計算器另一個問題: https://stackoverflow.com/questions/4438043/need-a-simple-wysiwyg-editor-with-image-upload

好運