Merge pull request #1158 from geraldus/gman/summernote

Add Summernote WYSIWYG html field
This commit is contained in:
Michael Snoyman 2016-03-06 11:53:52 +02:00
commit d922bdd272
3 changed files with 20 additions and 2 deletions

View File

@ -2,3 +2,14 @@
Form handling for Yesod, in the same style as formlets. See [the forms
chapter](http://www.yesodweb.com/book/forms) of the Yesod book.
This package provies a set of basic form inputs such as text, number, time,
checkbox, select, textarea, and etc. via `Yesod.Form.Fields` module. Also,
there is `Yesod.Form.Nic` module providing richtext field using Nic editor.
However, this module is grandfathered now and Nic editor is not actively
maintained since June 2012. You can find additional richtext editor fields in
[`yesod-form-richtext`][yesod-form-richtext] package (currently in provides
support of [Summernote][summernote] editor only).
[yesod-form-richtext]:http://hackage.haskell.org/package/yesod-form-richtext
[summernote]:http://summernote.org/

View File

@ -4,6 +4,13 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- | Provide the user with a rich text editor.
--
-- According to NIC editor homepage it is not actively maintained since June
-- 2012. There is another better alternative — open sourced Summernote editor
-- released under MIT licence. You can use Summernote in your Yesod forms via
-- separately distributed
-- <http://hackage.haskell.org/package/yesod-form-richtext yesod-form-richtext>
-- package.
module Yesod.Form.Nic
( YesodNic (..)
, nicHtmlField

View File

@ -10,7 +10,7 @@ stability: Stable
cabal-version: >= 1.8
build-type: Simple
homepage: http://www.yesodweb.com/
description: API docs and the README are available at <http://www.stackage.org/package/yesod-form>
description: API docs and the README are available at <http://www.stackage.org/package/yesod-form>. Third-party packages which you can find useful: <http://hackage.haskell.org/package/yesod-form-richtext yesod-form-richtext> - richtext form fields (currntly it provides only Summernote support).
extra-source-files: ChangeLog.md
README.md
@ -63,7 +63,7 @@ library
Yesod.Form.I18n.German
Yesod.Form.I18n.French
Yesod.Form.I18n.Norwegian
Yesod.Form.I18n.Japanese
Yesod.Form.I18n.Japanese
Yesod.Form.I18n.Czech
Yesod.Form.I18n.Russian
Yesod.Form.I18n.Dutch