It would be really nice if you would add G2Image. I tried copying the format of Link to menu in ghe ckeditor.config.js file, creating a plugin.js and link.js files. But that did not bring the g2image button into the toolbar.

CommentFileSizeAuthor
#15 g2image_ckeditor.zip3.73 KBpotss
#7 g2image_ckeditor.zip3.66 KBJSurf

Comments

mephir’s picture

If you want use Gallery2 Image Chooser it isn't neccessary. you can make dialog with iframe content and properly callback or open it in popup window also with callback. I'll try to help you with G2Image in this weekend.

mephir’s picture

Can you attach what you have got ?

janborc’s picture

Version: 6.x-1.0-beta1 » 6.x-1.0

subscribe

Zbyna’s picture

Is there any possibility to use g2image in CKeditor?
I see major improvements, but missing g2image is only point why CKeditor can't be used.
Thanks

mephir’s picture

Status: Active » Postponed

not yet, i'm working on it.

mephir’s picture

Assigned: Unassigned » mephir
JSurf’s picture

StatusFileSize
new3.66 KB

I got g2image basically working with ckeditor. In the file is a "plugin.js" file for ckeditor and a changed functions.js that uses CKEDITOR api to interact with the editor. Its not perfect but may be a starting point

- copy the g2image directory from the fckeditor plugins directory to sites/all/modules/ckeditor/plugins
- copy the files from the zip directory to the g2image directory
- edit the g2image/config.php to your gallery settings
- edit ckeditor.config.js to include the plugin

  /*
   * This toolbar is dedicated to users with "Full HTML" access some of commands
   * used here (like 'FontName') use inline styles, which unfortunately are
   * stripped by "Filtered HTML" filter
   */
  config.toolbar_DrupalFull = [
      ['Source'],
      ['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'],
      ['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
      ['Image','G2Image','Table','HorizontalRule','Smiley','SpecialChar'],
      '/',
      ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
      ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
      ['Link','Unlink','Anchor','LinkToNode', 'LinkToMenu'],
      '/',
      ['Format','Font','FontSize'],
      ['TextColor','BGColor'],
      ['Maximize', 'ShowBlocks'],
      ['DrupalBreak', 'DrupalPageBreak']
     ];

  CKEDITOR.plugins.addExternal('g2image', Drupal.settings.ckeditor.module_path + '/plugins/g2image/');
gliverman’s picture

So... has any new progress been made with G2image? I just setup Drupal 6.19, Gallery 2.3.1, Gallery 6.x-1.x-dev module, and CKEditor 6.x-1.1. G2image is installed in /sites/all/modules/gallery/gallery_g2image/g2image.

Thanks,
Gene

wwalc’s picture

Assigned: mephir » Unassigned
Status: Postponed » Active
wwalc’s picture

Assigned: Unassigned » dczepierga
Cumgranosalis’s picture

After I inserted

config.extraPlugins += (config.extraPlugins ? ',g2image' : 'g2image' );

before

CKEDITOR.plugins.addExternal('g2image', Drupal.settings.ckeditor.module_path + '/plugins/g2image/');

the g2image buttons appears and everything works!

Keep in mind: The button names are case sensitive so G2Image is not g2image.

THANK YOU.

BTW: I used the "normal" g2image-v3.0.3 from the zip file from the homepage

dczepierga’s picture

Status: Active » Closed (won't fix)

As i see Gallery2 project is dead so we don't add support for it.

Greetings

rsbecker’s picture

Does that mean there will be no support for Gallery3, which does not appear to be dead???

dczepierga’s picture

If someone create Gallery3 module and help to add support for CKEditor then i think it wouldn't be problem... For now Gallery3 project not start, so we back to this topic when they do something :)

Greetings

potss’s picture

StatusFileSize
new3.73 KB

this is new version of files
files from 3.0.3

i use g2image in folder "sites/all/modules/gallery/gallery_g2image"
wysiwyg 6x2.3 with ckeditor

i think the lines

  /*
   * This toolbar is dedicated to users with "Full HTML" access some of commands
   * used here (like 'FontName') use inline styles, which unfortunately are
   * stripped by "Filtered HTML" filter
   */
  config.toolbar_DrupalFull = [
      ['Source'],
      ['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'],
      ['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
      ['Image','G2Image','Table','HorizontalRule','Smiley','SpecialChar'],
      '/',
      ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
      ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
      ['Link','Unlink','Anchor','LinkToNode', 'LinkToMenu'],
      '/',
      ['Format','Font','FontSize'],
      ['TextColor','BGColor'],
      ['Maximize', 'ShowBlocks'],
      ['DrupalBreak', 'DrupalPageBreak']
     ];
config.extraPlugins += (config.extraPlugins ? ',g2image' : 'g2image' );
CKEDITOR.plugins.addExternal('g2image', Drupal.settings.ckeditor.module_path + 'sites/all/modules/gallery/gallery_g2image');

but what file i need to edit
sites/all/modules/wysiwyg/editors/ckeditor.inc ?

potss’s picture

Gallery2 project is dead?

are u have alternative?

potss’s picture

are u have alternative?