WordPress.org

Ready to get started?Download WordPress

Forums

CKEditor For WordPress
[resolved] [Ask] Toggling between CK and plain text area? (2 posts)

  1. AryaSenna
    Member
    Posted 3 years ago #

    Hi, I'm wondering whether it would be possible to put some kind of on/off switch in the comment area. I'd like my visitor would be able to choose the usual text area if they want to.

    Tnx in advance

    http://wordpress.org/extend/plugins/ckeditor-for-wordpress/

  2. AryaSenna
    Member
    Posted 3 years ago #

    Eureka!

    Okey-Dokey, I think I've found the solution, after a quick look into ckeditor.utils.js I was able to find the right JavaScript functions:

    ckeditorOn(); and
    ckeditorOff();

    Their names are quite self-explanatory, no?

    Both functions will adjust text-area visibility accordingly, so there is no more extra step required. Just put it as value of any event handler (i.e onClick) and voila! CKeditor is toggled gracefully with plain text area.

    It's dead simple to use, my thanks goes to developer. :)

    (I actually went through CK documentations and successfully tried to (re)create those functions from scratch! ultimately only to find they're already provided from the start. *facepalm* me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic