<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ### fileAllowedTypes | Type: | Array | |---| | Default: | ['*']| | Plugin: | file.min.js | 允許上載的文件類型的列表。雖然這將限制上傳其他類型的文件,我們強烈建議您檢查服務器上的文件類型。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileAllowedTypes: ['application/pdf', 'application/msword'] }); ~~~ ### fileInsertButtons | Type: | Array | |---| | Default: | ['fileBack', '\|'] | | Plugin: | file.min.js | 在插入文件彈出顯示按鈕列表,當插入一個新的文件到WYSIWYG編輯器。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileInsertButtons: [] }); ~~~ ### fileMaxSize | Type: | Number | |---| | Default: | 1024 * 1024 * 10| | Plugin: | file.min.js | 上載字節的最大文件大小。默認值是10MB。盡管在上載文件之前進行了附加檢查,但是強烈建議檢查服務器上的文件大小。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileMaxSize: 1024 * 1024 * 3 }); ~~~ ### fileUploadMethod | Type: | String | |---| | Default: | 'POST'| | Plugin: | file.min.js | HTTP文件上傳請求類型。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUploadMethod: 'PUT' }); ~~~ ### fileUploadParam | Type: | String | |---| | Default: | 'file'| | Plugin: | file.min.js | 自定義上載請求中包含文件的參數的名稱。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUploadParam: 'file_name' }); ~~~ ### fileUploadParams | Type: | Object | |---| | Default: | {}| | Plugin: | file.min.js | 將附加參數傳遞到文件上載請求。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUploadParams: { id: 'my_editor' } }); ~~~ ### fileUploadToS3 | Type: | Object | |---| | Default: | false| | Plugin: | file.min.js | 設置文件上傳到S3的選項。下面示例中的所有字段都是必需的。還要確保你已經啟用?[CORS](http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html "CORS")?在亞馬遜 **Note:**?`uploadURL`屬性可以用來代替?`bucket`?和?`region`?屬性指定一個自定義的URL從Amazon那里上傳圖像。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUploadToS3: { bucket: 'editor', region: 's3', keyStart: 'uploads/', callback: function (url, key) { // The URL and Key returned from Amazon. console.log (url); console.log (key); }, params: { acl: 'public-read', // ACL according to Amazon Documentation. AWSAccessKeyId: 'ACCESS_KEY', // Access Key from Amazon. policy: 'POLICY_STRING', // Policy string computed in the backend. signature: '', // Signature computed in the backend. } } }); ~~~ ### fileUploadURL | Type: | String | |---| | Default: | 'http://i.froala.com/upload'| | Plugin: | file.min.js | 保存用戶上傳的文件的URL。當一個文件被上傳,編輯發送文件到服務器通過HTTP請求。服務器應該從?` `文件的請求?參數并返回一個包含?`鏈接`?場的鏈接,上傳的文件的JSON對象的數據。更多細節可以在?[File Upload](https://www.froala.com/wysiwyg-editor/docs/concepts/file-upload "File Upload Concept")?查看概念. **E.g.**?{link: 'path/to/file.pdf'}.? **Note 1:**?默認情況下,文件存儲在我們的服務器上,但如果您想完全控制它們,您應該考慮在服務器上實現上載。在我們的服務器上存儲的文件,可以隨時刪除,沒有任何通知。 **Note 2:**?如果保存文件的域與編輯器運行的區域不一樣,則可能需要啟用?[requestWithCORS](https://www.froala.com/wysiwyg-editor/docs/options#requestWithCORS "requestWithCORS")?選項,在服務器上進行具體的自定義。欲了解更多信息請參考[Cross-origin resource sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing "Cross-origin Resource Sharing"). #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUploadURL: '/upload_file' }); ~~~ ### fileUseSelectedText | Type: | Boolean | |---| | Default: | false| | Plugin: | file.min.js | 允許在插入文件時使用文件名而不是選定文本。 #### CODE EXAMPLE ~~~ $('.selector').froalaEditor({ fileUseSelectedText: true }); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看