hi all,
In FCKeditor.html file shows a error message FCKeditor is not defined and then it displays "cannot load fckeditor.js. did you install fckeditor.
<html>
<head>
<title>FckEditor-Qooxdoo-Widget</title>
<script type="text/javascript"
src="fckeditor/fckeditor.js"
onerror="alert('Cannot load fckeditor.js. Did you install FCKEditor?');"></script>
</head>
<body>
<form onsubmit="dispatchSubmitEvent(); return false" action="" >
<script type="text/javascript">
loaded = false;
var oEditor = new FCKeditor( 'richedit' );
oEditor.BasePath = 'fckeditor/';
oEditor.ToolbarSet = 'Basic';
oEditor.Width = "100%";
oEditor.Height = "100%";
oEditor.Value = '';
oEditor.Create();
function getValue()
{
var oEditor = FCKeditorAPI.GetInstance('richedit') ;
return oEditor.GetXHTML();
}
function setValue(value)
{
var oEditor = FCKeditorAPI.GetInstance('richedit') ;
return oEditor.SetHTML( value );
}
function FCKeditor_OnComplete( editorInstance )
{
loaded = true;
}
function setParentWidget ( w )
{
this._parent = w;
}
function getParentWidget ()
{
return this._parent;
}
function dispatchSubmitEvent()
{
this.getParentWidget().createDispatchDataEvent("editor-save",this.getValue());
}
</script>
</form>
</body>
</html>
can you any one help us?
thanks in advance
with regards,
yoga
In FCKeditor.html file shows a error message FCKeditor is not defined and then it displays "cannot load fckeditor.js. did you install fckeditor.
<html>
<head>
<title>FckEditor-Qooxdoo-Widget</title>
<script type="text/javascript"
src="fckeditor/fckeditor.js"
onerror="alert('Cannot load fckeditor.js. Did you install FCKEditor?');"></script>
</head>
<body>
<form onsubmit="dispatchSubmitEvent(); return false" action="" >
<script type="text/javascript">
loaded = false;
var oEditor = new FCKeditor( 'richedit' );
oEditor.BasePath = 'fckeditor/';
oEditor.ToolbarSet = 'Basic';
oEditor.Width = "100%";
oEditor.Height = "100%";
oEditor.Value = '';
oEditor.Create();
function getValue()
{
var oEditor = FCKeditorAPI.GetInstance('richedit') ;
return oEditor.GetXHTML();
}
function setValue(value)
{
var oEditor = FCKeditorAPI.GetInstance('richedit') ;
return oEditor.SetHTML( value );
}
function FCKeditor_OnComplete( editorInstance )
{
loaded = true;
}
function setParentWidget ( w )
{
this._parent = w;
}
function getParentWidget ()
{
return this._parent;
}
function dispatchSubmitEvent()
{
this.getParentWidget().createDispatchDataEvent("editor-save",this.getValue());
}
</script>
</form>
</body>
</html>
can you any one help us?
thanks in advance
with regards,
yoga
Re: Error message in FCK editor
Well, this message says it all you are trying to run FCKeditor inside Qooxdoo but you haven't downloaded FCKeditor.
Download FCKeditor: http://www.fckeditor.net/download and place it inside fckeditor directory so that Qooxdoo could access fckeditor/fckeditor.js and other FCKeditor files.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+