Welcome, Guest
Username Password: Remember me

jSeblod and JoomlaCK compatibility
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: jSeblod and JoomlaCK compatibility

jSeblod and JoomlaCK compatibility 1 year, 7 months ago #1

  • Norren
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
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!
Last Edit: 1 year, 7 months ago by Norren.

Re:jSeblod and JoomlaCK compatibility 1 year, 7 months ago #2

  • SEBLOD - Bes
  • ( Admin )
  • OFFLINE
  • Administrator
  • Working on SEBLOD 2.0 GA
  • Posts: 3141
  • Karma: 97
Hi Norren,

Many thanks for this great post. We will try to add this by default.

Best Regards
If you use SEBLOD CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you.!!"
SEBLOD Vimeo Channel: vimeo.com/channels/seblod
SHAPE YOUR SITE YOUR WAY

Re:jSeblod and JoomlaCK compatibility 1 year, 5 months ago #3

  • Gosimowicz
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
Hey Norren,

First of all thanks for taking the time to document and share the tip.
Quick question - did you have to do anything to have JoomlaCKEditor display when editing articles? I've been trying for the last 1.5hours to get it to work but I keep getting a blank basic editor instead (see: www.jseblod-cck.com/forum/55-extensions/...ackeditor.html#11802 ).

Thanks in advance,
Greg

Re:jSeblod and JoomlaCK compatibility 1 year, 5 months ago #4

  • SEBLOD - Bes
  • ( Admin )
  • OFFLINE
  • Administrator
  • Working on SEBLOD 2.0 GA
  • Posts: 3141
  • Karma: 97
Hi Greg,

Do you insert the code of Norren?

Best Regards
If you use SEBLOD CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you.!!"
SEBLOD Vimeo Channel: vimeo.com/channels/seblod
SHAPE YOUR SITE YOUR WAY

Re:jSeblod and JoomlaCK compatibility 1 year, 5 months ago #5

  • Gosimowicz
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
Hey Bes,

Yes, I've added the code in both files (for front and back-end editing). However, I'm not sure if this is the issue - I also have Wysiwyg PRO 3 installed and working fine with jSeblod even though it's not listed as "allowed" in the code above. Are there any other settings anywhere that control which editors are "allowed"? Are you aware of anything else I can try to get things working?

Thanks in advance,
Greg

PS. I currently have the following editors installed:

JCE 1.5.7 - works fine
TinyMCE - works fine
Wysiwyg PRo 3 - works fine
CKEditor - no editor displayed
JoomlaCKEditor - no editor displayed

Re:jSeblod and JoomlaCK compatibility 1 year, 5 months ago #6

  • Norren
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
try to return default jSeblod code

Re:jSeblod and JoomlaCK compatibility 1 year, 5 months ago #7

  • Gosimowicz
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
Hi Norren,

Reverting the code to the previous version doesn't make any difference - the editor will still not display

Greg

Re:jSeblod and JoomlaCK compatibility 1 year, 4 months ago #8

  • cubefree
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Yea, I installed the JCK Editor with its plugins and jSeblod-CCK, made the changes above and still suffering the same issues. Hmmmm... too bad.

Curious how these lines were found?

case "ck":
content = this.CKEDITOR.instances[into].getData()
break;
Last Edit: 1 year, 4 months ago by cubefree.

Re:jSeblod and JoomlaCK compatibility 1 year, 4 months ago #9

  • Gosimowicz
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
Yeah, I've given up on trying to get these two work together. Shame as the JoomlaCKEditor seem to be really good..

Greg

Re:jSeblod and JoomlaCK compatibility 1 year, 4 months ago #10

  • cubefree
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Yo jSeblod Team!

Any way to resolve this issue?

Is it because it's a plugin vs a component?

The advances on this component continue to astound the imagination. You are closing the gap between Drupal and Joomla.

Re: jSeblod and JoomlaCK compatibility 1 year, 4 months ago #11

  • SEBLOD - Saba
  • ( Admin )
  • OFFLINE
  • Administrator
  • Posts: 930
  • Karma: 38
Hi all,

I'll have a look in order to see if one (or 2) new editor compatibility can be implemented...

Best regards,
Saba.
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you "Innovation Will Continue !!"
Last Edit: 1 year, 4 months ago by SEBLOD - Saba.
The following user(s) said Thank You: gioppoluca
  • Page:
  • 1
Time to create page: 0.49 seconds