There seems to be a few posts regarding Panels 2 + FCKEditor stating that due to the nature of Drupal 5.x + javascript, it was difficult/impossible to get the FCKEditor working in the new custom content window. There seemed to be a few workarounds for Panels 2 + Drupal 6.x + TinyMCE.

What I am interested in (and I would doubt I am the only one) is enabling the WYSIWYG API within the new custom content of Panels 3. I am interested in using the WYSIWYG API as then one can tap into the IMCE connector, yielding a very nice editor. I am pretty handy with php, and am in the process of learning drupal, and would not mind giving this a shot myself. But before I give it a try, I thought I would ask:

1. Has anyone done this yet? My searches have not yielded any results so I am guessing the answer is either no, or not publicly

2. Does this seem possible? And if so, does anyone have any suggestions on where to start?

Comments

gdkt11’s picture

subscribe

gintass’s picture

I'm looking for this too.

bensnyder’s picture

This would undoubtedly be incredible.

I'm looking for a solution as well - will post back if I find one.

my-family’s picture

subscribe

akriel’s picture

subscribe

edit: just found this issue #235764: Textareas on the Panels content UI doesn't support WYSIWYG editors.
#25 worked for me, with panels 3 + tinymce

flyzi’s picture

Hello,

I use panels 3 on Drupal 7.
I want to use wysiwyg when i add "new custom content" but I am lost with various solutions (issue #235764: Textareas on the Panels content UI doesn't support WYSIWYG editors.).

New module, hook in template.php, etc.

thanks,

WorldFallz’s picture

Following the trail from #235764: Textareas on the Panels content UI doesn't support WYSIWYG editors. leads to #356480: Lazy-load editors -- seems the way forward is to contribute to that effort (there's not likely going to be another module to fix this).

dawolle’s picture

My Installation:
Drupal 7.7
Panels 7.x-3.0-alpha3
WYSIWYG 7.x-2.1

I tryed to load WYSIWYG Profile everytime a Panel Node is loaded.
Todo that create a custome Module with the following hook Implemented:


function MODULENAME_node_load($nodes, $types) {
  if (in_array('panel', $types)) {
    foreach (array_keys(filter_formats()) as $format) {
      if ($profile = wysiwyg_get_profile($format)) {
        $theme = wysiwyg_get_editor_themes($profile, (isset($profile->settings['theme']) ? $profile->settings['theme'] : ''));
        wysiwyg_add_plugin_settings($profile);
        wysiwyg_add_editor_settings($profile, $theme);
      }
    }
  }
}

Works for me with CKEditor 3.x

*Edit*

Saving content doesn't work ...

dawolle’s picture

I was searching for other solutions and found this Fix:
https://github.com/jbylsma/wysiwyg_panels

Including this Javascript file was working in my case.

Here the Code:


function MODULENAME_node_load($nodes, $types) {
  if (in_array('panel', $types)) {
    foreach (array_keys(filter_formats()) as $format) {
      if ($profile = wysiwyg_get_profile($format)) {
        $theme = wysiwyg_get_editor_themes($profile, (isset($profile->settings['theme']) ? $profile->settings['theme'] : ''));
        wysiwyg_add_plugin_settings($profile);
        wysiwyg_add_editor_settings($profile, $theme);
      }
    }
    drupal_add_js(drupal_get_path('module', 'MODULENAME') . '/wysiwyg_panels.js');
  }
}

*edit*

again it dosnt work at all ... after a page refresh the content is gone ... i hate this issue :/

dc_marc’s picture

subscribe

anybody’s picture

Information: A possibly real solution can be found here: http://drupal.org/node/356480#comment-5494486 (#91)

For the German users (and others of course who would like to use it), I've provided a temporary patched wysiwyg module download at:
http://julian.pustkuchen.com/drupal-7-wysiwyg-tinymce-panels-benutzerdef...
which I am using myself.
(As a short help for users who don't know how to patch, of course handle with care, it's just a reviewed patch!! See warning at the end of the blog post.)

I hope that helped some of you.

http://www.DROWL.de || Professionelle Drupal Lösungen aus Ostwestfalen-Lippe (OWL)
http://www.webks.de || webks: websolutions kept simple - Webbasierte Lösungen die einfach überzeugen!
http://www.drupal-theming.com || Individuelle Responsive Themes