Topher Fangio
Topher Fangio

Reputation: 20687

How can I turn off CKEditor on certain platforms?

I've been reading a lot of places that show how to set CKEditor into a read-only mode, but that is not what I need.

For iOS/Android (or better: "small/mobile devices"), I'd like to actually turn it off so that I have a plain old <textarea> on those devices/platforms (we don't usually need the fancy stuff; it's just nice to have on a desktop so people can copy/paste from MS Word and not have it blow up).

Is there a setting I can configure; or can I at least run some Javascript and programmatically turn it off?

Upvotes: 0

Views: 123

Answers (1)

oleq
oleq

Reputation: 15895

See CKEDITOR.env.isCompatible flag. You can always change it a bit (see the definition).

Alternatively, wrap your CKEDITOR.replace() (or inline()) call in some sort of conditional.

Upvotes: 1

Related Questions