HTML5 富文本編輯器:Squire

jopen 9年前發布 | 68K 次閱讀 Squire HTML編輯器

Squire是一個HTML5的富文本編輯器,它提供了強大的跨瀏覽器的標準化,同時又是超級輕巧靈活。 只支持最新的瀏覽器。

Installation

  1. Download the source from neilj/Squire
  2. Copy the contents of thebuild/directory onto your server.
  3. Edit the<style>block in document.html to add the default styles you would like the editor to use (or link to an external stylesheet).
  4. In your application, instead of a<textarea>, use an<iframe src="path/to/document.html">.
  5. In your JS, attach an event listener to theloadevent of the iframe. When this fires you can grab a reference to the editor object throughiframe.contentWindow.editor.
  6. Use the API below with theeditorobject to set and get data and integrate with your application or framework.

項目主頁:http://www.baiduhome.net/lib/view/home/1421394578484

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!