I needed to make compatibility beetwen jSeblod 1.6.2 and JoomlaCKEditor 3.3.1
When I tried to make JoomlaCK as default editor in Joomla, I found out that my content wysiwig_introtext was not saved. Searching at this forum, and others joomla forums had no success
I opened jSeblod code and what I saw? jSeblod could use only three wysiwig-editors - JCE, FCKEditor and surely TinyMCE
I added rows for JoomlaCKEditor. May be it will be usefull for jSeblod developers and users
For moding we need 2 files
\administrator\components\com_cckjseblod\views\modal_wysiwyg\tmpl\form.php - back-end
\components\com_cckjseblod\views\modal_wysiwyg\tmpl\form.php - front-end
find code in both files:
var getCurrentEditor = function() {
if (this.JContentEditor) {
editor = "jce";
} else if (this.FCKeditorAPI) {
editor = "fck";
} else if (this.tinyMCE) {
editor = "tiny";
} else {
editor = null;
}
return editor;
}
replace on it:
var getCurrentEditor = function() {
if (this.JContentEditor) {
editor = "jce";
} else if (this.FCKeditorAPI) {
editor = "fck";
} else if (this.tinyMCE) {
editor = "tiny";
} else if (this.CKEDITOR) {
editor = "ck";
} else {
editor = null;
}
return editor;
}
next find code (in both files again):
switch( editor )
{
case "fck":
content = this.FCKeditorAPI.GetInstance(into).GetHTML()
break;
case "jce":
content = this.JContentEditor.getContent(into);
break;
case "tiny":
if ( mode ) {
content = this.tinyMCE.activeEditor.getContent();
} else {
content = this.tinyMCE.activeEditor.getContent();
}
break;
default:
content = $(into).value;
break;
}
replace on it:
switch( editor )
{
case "ck":
content = this.CKEDITOR.instances[into].getData()
break;
case "fck":
content = this.FCKeditorAPI.GetInstance(into).GetHTML()
break;
case "jce":
content = this.JContentEditor.getContent(into);
break;
case "tiny":
if ( mode ) {
content = this.tinyMCE.activeEditor.getContent();
} else {
content = this.tinyMCE.activeEditor.getContent();
}
break;
default:
content = $(into).value;
break;
}
that's all
Although, i am so gratefull jSeblod team for big deal! Thanx!
PS. Somehow, line breaks in code blocks are lost. Sorry!