Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

How do you make a ckeditorClassic (textarea field) read only.

$
0
0

I have an administration form for managing comments. To act on a comment the admin should first read the comment. In order to properly read it I have ckeditorClassic type enabled, otherwise it will be a challenge because of all the html markup.

The administrator should not be able to edit the comment, only approve/disapprove. Both 'readonly' and 'ckeditorClassic' share text type thus they are mutually incompatible.

In another thread I found attr and tried it:

    {
      label: 'Comment',
      name: 'blog_comments.comment',
      type: 'textarea',
      type: 'ckeditorClassic',
      attr:{ disabled:true },
    },

Does attr not work in this instance or do I have the formatting wrong?


Viewing all articles
Browse latest Browse all 1816

Latest Images

Trending Articles



Latest Images