HTML5 富文本編輯器:Squire
Squire是一個HTML5的富文本編輯器,它提供了強大的跨瀏覽器的標準化,同時又是超級輕巧靈活。 只支持最新的瀏覽器。
Installation
- Download the source from neilj/Squire
- Copy the contents of thebuild/directory onto your server.
- 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).
- In your application, instead of a<textarea>, use an<iframe src="path/to/document.html">.
- 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.
- Use the API below with theeditorobject to set and get data and integrate with your application or framework.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!