Main navigation
Product navigation
Main content
CKEditor 4
Overview
Demo
Accessibility Checker
Add-ons
Documentation
Download
Pricing
More
Home
WYSIWYG Editors
CKEditor 4
CKEditor 5
Image upload
CKFinder
Easy Image
Collaboration
Comments
New
Track changes
New
Collaborative editing
Pricing
Case studies
New
Documentation
Help center
Blog
Contact us
The forum operates in
read-only
mode. Please head to
StackOverflow
for support.
Forums
CKEditor
FCKeditor 2
Last post
Mon, 08/29/2005 - 20:28
#1
pntt
Joined:
11/08/2005
Posts:
3
Using Javascript, check empty value
http://www.fckeditor.net
Fri, 08/12/2005 - 00:23
#2
bnoblet
Joined:
29/11/2006
Posts:
179
RE: Using Javascript, check empty value
if(FCKeditorAPI.GetInstance("editorname").GetHTML() == '') {alert('content is empty')}
Sat, 08/13/2005 - 20:36
#3
pntt
Joined:
11/08/2005
Posts:
3
RE: Using Javascript, check empty value
Thank you very much, bnoblet!
Sat, 08/13/2005 - 20:54
#4
bnoblet
Joined:
29/11/2006
Posts:
179
RE: Using Javascript, check empty value
No problem, I hope it helps. BTW, I just learnt that there is a GetXHTML function which will probably work better.
if(FCKeditorAPI.GetInstance("editorname").GetXHTML() == '') {alert('content is empty')}
Cheers
Ben
Sun, 08/14/2005 - 19:31
#5
pntt
Joined:
11/08/2005
Posts:
3
RE: Using Javascript, check empty value
Thanks, Ben!
Mon, 08/29/2005 - 20:28
#6
yoki28
Joined:
27/10/2005
Posts:
10
RE: Using Javascript, check empty value
That code only seems to work with IE...could I get a code that works both with IE and Mozilla?
Twitter
Facebook
Facebook
Instagram
Medium
Linkedin
GitHub
Arrow down
Phone
Menu
Close icon
Check
RE: Using Javascript, check empty value
RE: Using Javascript, check empty value
RE: Using Javascript, check empty value
if(FCKeditorAPI.GetInstance("editorname").GetXHTML() == '') {alert('content is empty')}
Cheers
Ben
RE: Using Javascript, check empty value
RE: Using Javascript, check empty value