You are here: Foswiki>Tasks Web>Item10909 (10 Jan 2012, MichaelDaum)Edit Attach

Item10909: NatEditPlugin WYSIWYG problems (auto-resizing broken)

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: NatEditPlugin
Branches: trunk
Reported By: PaulHarvey
Waiting For:
Last Change By: MichaelDaum
There are several issues, but this fixes resizing issues for us:
diff --git a/pub/System/NatEditPlugin/jquery.natedit.uncompressed.js b/pub/System/NatEditPlugin/jquery.natedit.uncompressed.js
index 186faa8..0a4bac7 100644
--- a/pub/System/NatEditPlugin/jquery.natedit.uncompressed.js
+++ b/pub/System/NatEditPlugin/jquery.natedit.uncompressed.js
@@ -853,8 +853,8 @@ $.natedit = {
     signatureMarkup: ['-- ', '%WIKINAME%, ' - '%DATE%'],
 
     autoHideToolbar: false,
-    autoMaxExpand:false,
-    autoExpand:false,
+    autoMaxExpand:true,
+    autoExpand:true,
     minHeight:230,
 
     showToolbar: true,

-- PaulHarvey - 22 Jun 2011

Could you please elaborate the issue you are trying to fix, maybe using screenshots?

-- MichaelDaum - 22 Jun 2011

I've had to revert to an older rev because the ajax save is very nifty, but doesn't handle strikeone (error on second save & continue - FWIW RestPlugin has a javascript API which allows you to keep updating topics and handles validation).

Specifically on the newer version, the WYSIWYG editor fails to resize itself to the window dimensions appropriately (must always be manually sized).

I need to spend some more time on this bug; last year some time I added a patch to allow dynamic resizing of TinyMCE and that is no longer working

-- PaulHarvey - 22 Jun 2011

Re-titled the bug

-- PaulHarvey - 27 Jun 2011

Here is a screenshot of the window size issue: screenshot 2011-6-27 14-2-29.png

-- MartinKaufmann - 27 Jun 2011

Fixed in 5.10.

-- MichaelDaum - 10 Jan 2012

Topic revision: r9 - 10 Jan 2012, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy