after i searched the forum, the solution couldn't be found. so i have to post for answer.
1. i use the code to sumbit
but it sumbit the raw code of the text which i typed, translated from < to < , i just want to submit the content in the wysiwyg mode, and i changed the code above from source:1 to source:0 , it doesn't effect.
2. i want to use the editor to generate the XML file, is it a shortcut to create it? such as using the API CKEDITOR.dom etc.
Thanks a lot!
1. i use the code to sumbit
ckEditor.on("instanceReady",function()
{
// overwrite the default save function
ckEditor.addCommand( "save", {
modes : { wysiwyg:1, source:1 },
exec : function () {
// get the editor content
var theData = ckEditor.getData();
alert(theData);
}
})
}); but it sumbit the raw code of the text which i typed, translated from < to < , i just want to submit the content in the wysiwyg mode, and i changed the code above from source:1 to source:0 , it doesn't effect.
2. i want to use the editor to generate the XML file, is it a shortcut to create it? such as using the API CKEDITOR.dom etc.
Thanks a lot!
