Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ckeditor check if empty

for (instance in CKEDITOR.instances) {
        //element id 
        if (CKEDITOR.instances['element_id'].getData() == "") {
            alert('empty');
        } else {
            alert('not empty');
        }
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ckeditor #check #empty
ADD COMMENT
Topic
Name
1+8 =