Keyword

cannot see jce editor

More
13 years 4 weeks ago #92830 by Matthew Turk
Replied by Matthew Turk on topic cannot see jce editor
Thanks Ruth, keep us posted ...

Please Log in or Create an account to join the conversation.

  • Opulent Projects Ltd
  • Opulent Projects Ltd's Avatar
  • Offline
  • New Member
More
13 years 4 weeks ago #92831 by Opulent Projects Ltd
Replied by Opulent Projects Ltd on topic cannot see jce editor
cheers ruth.

Ruth Cheesley said:
Same problem here, Joomla 1.5.23, JCE 1.5.7.11 and K2 2.4.1.  New articles the editor is off, but I can turn it on.  Current articles when I edit them, there doesn't seem to be any way of turning on the editor so having to manually code everything Yawn!.  I'm using Firefox 3.6.x so it happens in older versions of FF as well. 

 

Have posted it on the members bit of the JCE forum but no response yet:

www.joomlacontenteditor.net/forum/topic?f=31&t=20481&;...

 

Ruth

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #92832 by Bryan Smith
Replied by Bryan Smith on topic cannot see jce editor
same problem here

 

turning off "use editor" in extra fields solved the problem, but now no editor in extra fields.  :(

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #92833 by Ron Eli
Replied by Ron Eli on topic cannot see jce editor
I want to add my 2 cents here, if someone is using he JCH_Optimize plugin...turn off "minify js" will fixed this. You can see it working here: Hair Transplant Blog

Please Log in or Create an account to join the conversation.

More
13 years 1 week ago #92834 by Pepijn Baart
Replied by Pepijn Baart on topic cannot see jce editor
Hi everybody,

 

I had the same trouble with different sites on different servers.

1. I had no JCE when writing a new K2 article.

2. I had no editor on the K2 extra fields when editing a previously written item.

btw. im using Joomla 1.5.23 with K2 2.4.1 and JCE 1.5.7.11

The first problem i solved by turning on gzip compression on the editor. I don't know why, but it did the job for me.

The second one was a little harder (I'm no programmer). I fixed it by changing a class in the code of K2.

in the /administrator/components/com_k2/models/extrafield.php i found somewhere around line 209-210

$output='<textarea name="K2ExtraField_'.$extraField->id.'" id="K2ExtraField_'.$extraField->id.'" rows="10" cols="40" class="k2ExtraFieldEditor">'.$active[0].'</textarea>';
$output='<textarea name="K2ExtraField_'.$extraField->id.'" id="K2ExtraField_'.$extraField->id.'" rows="10" cols="40" class="mceEditor">'.$active[0].'</textarea>';

I changed the class from K2ExtraFieldEditor to mceEditor, and i can use JCE (my default editor), but when i tried tinyMCE  i again had no editor field. So i changed the line to:

$output='<textarea name="K2ExtraField_'.$extraField->id.'" id="K2ExtraField_'.$extraField->id.'" rows="10" cols="40" class="k2ExtraFieldEditor mceEditor">'.$active[0].'</textarea>';
Now i can use both editors. When I now use JCE as a default editor of the user i see JCE, when i switch to tinyMCE i see the default k2 editor.

I haven't tested all the JCE plugins, but so far it works for me.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #92835 by Ruth Cheesley
Replied by Ruth Cheesley on topic cannot see jce editor
Here was the response from the JCE team:

 


Here is the fix I have sent to the K2 team:

Open view.html.php in administrator/components/com_k2/views/items/view.html.php

Replace :

$js = "function initExtraFieldsEditor(){ $$('.k2ExtraFieldEditor').each(function(element) { var id = element.id; if (typeof JContentEditor != 'undefined') { if (tinyMCE.get(id)) { tinymce.EditorManager.remove(tinyMCE.get(id)); } tinyMCE.execCommand('mceAddControl', false, id); } else { new nicEditor({fullPanel: true, maxHeight: 180, iconsPath: '".JURI::root()."administrator/components/com_k2/images/system/nicEditorIcons.gif'}).panelInstance(element.getProperty('id')); } }); } function syncExtraFieldsEditor(){ $$('.k2ExtraFieldEditor').each(function(element){ editor = nicEditors.findEditor(element.getProperty('id')); if(typeof editor != 'undefined'){ editor.saveContent(); } }); } ";
 

with :

$js = "function initExtraFieldsEditor(){ $$('.k2ExtraFieldEditor').each(function(element) { if (typeof JContentEditor != 'undefined') { // wait until main editor is added tinyMCE.onAddEditor.add(function(mgr, ed) { // skip for extrafields editor if (ed.id == element.id) { return; } // wait until main editor is initialized ed.onInit.add(function() { tinyMCE.execCommand('mceAddEditor', false, element); }); }); } else { new nicEditor({fullPanel: true, maxHeight: 180, iconsPath: '".JURI::root()."administrator/components/com_k2/images/system/nicEditorIcons.gif'}).panelInstance(element.getProperty('id')); } }); } function syncExtraFieldsEditor(){ $$('.k2ExtraFieldEditor').each(function(element){ editor = nicEditors.findEditor(element.getProperty('id')); if(typeof editor != 'undefined'){ editor.saveContent(); } }); } ";
do exactly the same in components/com_k2/views/items/view.html.php

 

Ruth Cheesley
Virya Technologies

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #92836 by BBC
Replied by BBC on topic cannot see jce editor
JCE 2.0 Beta8 is out.

Have to try it.

 

With Beta7 i cannot:

 

- use extra fields. (have some text, click at Apply / Save, and nothing happens. Field is still empty. Or old text remains.)

This is a bug in K2, not JCE. Because extra fields use K2 NicEdit native editor.

 

- put videos

 

- cannot chose JCE for extra fields (mark field for "use editor" in field settings, Apply / Save, and nothing happens.

 

Will try Beta8.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #92837 by BBC
Replied by BBC on topic cannot see jce editor
Ruth, this code doesn´t work in SVN K2. Simply because that code doesn´t exist in new SVN K2.

 

Developers of K2 have to have some serious talk with developer of JCE.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #92838 by Ruth Cheesley
Replied by Ruth Cheesley on topic cannot see jce editor
I don't believe it is an issue on the SVN version, is it? Well, from what I've seen no editors seem to work on SVN :|

Ruth Cheesley
Virya Technologies

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #92839 by BBC
Replied by BBC on topic cannot see jce editor
Beta7 and Beta8 of JCE work in SVN K2. But with many problems.

Problems with video insert. Impossbile to use JCE for extra fields.. Etc...etc...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum