I am trying to use fckeditor to edit some files that contain only snippets of a webpage and do not have <html> and <body> tags. When I use the getData method it returns a string where the <html> and <body> tags have been inserted. Is there a way to get the data without these tags being added?
Here's the code I'm using:
Here's the code I'm using:
function GetContents() { var oEditor = FCKeditorAPI.GetInstance('snippet') ; alert( oEditor.GetData(false)) ; }
Re: using GetData adds html
For anyone interested the solution is to set FULL=FALSE before retrieving the data.
This seems like a bug to me since the data it retrieves contains extraneous data that was not part of the field in the first place.
I'm kind of disapointed at the lack of support so many posts seem to get.