vikkievignesh / whizzywig

Automatically exported from code.google.com/p/whizzywig
MIT License
0 stars 0 forks source link

Conflict with drupal.js in Drupal CMS #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Drupal and Whizzywig 6.x-2.0 from 
http://ftp.drupal.org/files/projects/whizzywig-6.x-2.0-alpha1.tar.gz
2. Go to Admnister - Site Building - Blocks: try to add a block
3. Whizzywig editor will displayed but not editable
4. Try to rename misc/drupal.js to drupal.js1
5. Whizzywig editor will work normally. Look like crashed with drupal.js in 
Collapsible-fieldset section

What is the expected output? What do you see instead?
Whizzywig should editable but now not editable when Drupal Collapsible-fieldset 
enable

What version of the product are you using? On what operating system?
Drupal 6.19, Whizzywig 6.x-2.0 module, and Whizzywig 61 libs. CentOS 5.5+CPanel 
and Windows 7+XAMPP

Please provide any additional information below.
1. Suggest to check the namespace beetwen both libs
2. You can contact me directly if you need more info. YM ID: 
kotakomputer@yahoo.com

Original issue reported on code.google.com by kotakomp...@gmail.com on 5 Sep 2010 at 3:15

GoogleCodeExporter commented 8 years ago
I have fixed this issue temporary by disabling Collapsible feature in Drupal 
fieldset on a block (including add and edit block).

Look at http://drupal.org/project/whizzywig - Version: 6.x-2.0-alpha2

But need attention when Whizzywig in a fieldset but not in a block-form.

Original comment by kotakomp...@gmail.com on 8 Sep 2010 at 6:42

GoogleCodeExporter commented 8 years ago
Have not attempted to reproduced this problem but it is recognised there can be 
potential namespace conflicts with other libraries. A solution is under 
consideration but it is unlikely to be backwards compatible: customisations 
will need to be changed.

Original comment by unve...@gmail.com on 9 Nov 2010 at 1:18

GoogleCodeExporter commented 8 years ago
Will this namespace issue fixed on next v62? It is already 6 months without 
developer update. Does this project still exists?

Original comment by kotakomp...@gmail.com on 11 Jan 2011 at 1:39

GoogleCodeExporter commented 8 years ago
Fixing namespace requires a fundamental re-write of Whizzywig and is unlikely 
to be addresssed in v62. Whizzywig 2011 has its own namespace.

Original comment by unve...@gmail.com on 12 Mar 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Fixed the code and preparing for commit to svn repository when permission 
granted by unverse.

So now to activate the editor the make function would look like this:

whizzywig.makeWhizzyWig("textarea_id","all");

or

whizzywig.makeAll("all");

and customizations like this:

whizzywig.cssFile = "simple.css"

 whizzywig.sels = ' Textbox '; //adding custom select(s)

 whizzywig.opts['textbox'] = new Array("Text box", "Right", "Left");

 whizzywig.vals['textbox'] = new Array("","<div style='float:right;width:200px;border:1px solid;padding:.5em;margin:0 5px;'> ","<div style='float:left;width:200px;border:1px solid;padding:.5em;margin:0 5px;'> ");

 whizzywig.buts = ' selectall superscript'; //adding custom button(s)

Original comment by jgm...@gmail.com on 2 Aug 2011 at 2:56

GoogleCodeExporter commented 8 years ago
Fixed on svn

Original comment by jgm...@gmail.com on 2 Aug 2011 at 8:53