|
From: <dor...@us...> - 2009-01-11 19:15:22
|
Revision: 1057
http://andro.svn.sourceforge.net/andro/?rev=1057&view=rev
Author: dorgan1983
Date: 2009-01-11 19:15:18 +0000 (Sun, 11 Jan 2009)
Log Message:
-----------
initial support for new jquery based WYSIWYG editor...we should leave FCKEditor in place until we get the new WYSIWYG the way we want it...its fully customizable...
One thing that has to be added so that it dehavoir like other fields during an edit is a way to make it look disabled.
Modified Paths:
--------------
trunk/andro/clib/x6.js
Modified: trunk/andro/clib/x6.js
===================================================================
--- trunk/andro/clib/x6.js 2009-01-11 18:23:40 UTC (rev 1056)
+++ trunk/andro/clib/x6.js 2009-01-11 19:15:18 UTC (rev 1057)
@@ -2382,6 +2382,24 @@
x6inputs.disable(this);
}
);
+ $(self).find("textarea").each(
+ function() {
+ if ($(this).attr('xtypeid') == 'mime-h-f' || $(this).attr('xtypeid') == 'mime-h' ) {
+ var el = '#' + $(this).attr('id');
+ $(el).wysiwyg({
+ controls: {
+ separator09: { visible : true },
+ html : {visible : true},
+ separator10: { visible : true },
+ cut : {visible : true},
+ copy : { visible : true },
+ paste : { visible : true },
+ separator07 : { visible : true }
+ }
+ });
+ }
+ }
+ );
}
// detail receives a request to go to a mode which
@@ -2575,6 +2593,17 @@
jqobj[0].zActive = 1;
}
}
+
+ $(self).find("textarea").each(
+ function() {
+ if ($(this).attr('xtypeid') == 'mime-h-f' || $(this).attr('xtypeid') == 'mime-h' ) {
+ var elIFrame = '#' + $(this).attr('id') + 'IFrame';
+ var el = '#' + $(this).attr('id');
+ $($(elIFrame).document()).find('body').html($(el).val());
+ }
+ }
+ );
+
}
if(u.p(self,'x6profile')=='twosides') {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|