CKEditor on front end forms

For rich text user input:


Use the standard version of CKEditor as plugin. The Core version is for admin use only.

Front end form code

The basic sanitizer function removes al html markup for text only fields.

So use the pw function $sanitizer->purify(string $str) in the form processing code.

Field configuration

Configure the textarea field as follows:

  • enable content type Markup/HTML (evt. with image management)
  • disable / do not use the Textformatter: HTML Entity Encoder. This displays markup code as source code.


Post Comment

daclarkie 09-Apr-17 - 9:47pm

Rating: - - - - -

Do not agree