Re: How do I remove the the grey background/border around the main editable document area?

pinEdit WP

How do I remove the the grey background/border around the main editable document area?


Fly Geek 01-04-2007, 10:19

Hello!

I'm using the pinEdit 5.2 (WP) evaluation product.  I'm trying to upgrade from an older version so that I can take advantage of the new spell checking add-on. 

My application is very sensitive to changes in margin real estate in both the vertical and horizontal directions.  Our older version of pinEdit does not include the grey (9099AE) background/border around the document.  As a result of this background, we loose about 20px in all directions.  I would prefer to remove this background using the server side API.  Do you currently have a function that supports removing this border?  If not, could you add it to the next wish list?

I've thought about using the client script model to retrieve the document object (obj.editGetDocument()).  I could use script to find the parent cell (<TD>) and remove the padding to get back my original dimensions.  However, this method will receive criticism at my workplace because the next version of pinEdit could easily break my hack.  If you have any other ideas, please let me know.

 

Thanks.

Re: How do I remove the the grey background/border around the main editable document area?


Pintexx Support 01-05-2007, 9:19
Hi,

this feature is called "DocumentView".
There should be a property/method to turn it off.

Regards,
Hans-Peter

Re: How do I remove the the grey background/border around the main editable document area?


Fly Geek 01-05-2007, 5:58

Thanks for the quick reply.

I've tried toggling the documentView property in my code.  It doesn't seem to change anything.  I've also tried your web samples (Step 2. Define View).  I'm not seeing anything happen as this property is modified.  Is there anything else I should look into? 

Re: How do I remove the the grey background/border around the main editable document area?


Pintexx Support 01-05-2007, 7:28
Hi,

could you please download the latest fix from pinedit.pintexx.com --> support --> fix (core) and overcopy the files.

Then please try again.

Best Regards,
Hans-Peter

Re: How do I remove the the grey background/border around the main editable document area?


Fly Geek 01-05-2007, 8:46

Thanks again for the quick reply.

I've updated both the "editor" subdirectory and the pinedit.dll file.  I still see the same problem in both the local demo and my application.

Re: How do I remove the the grey background/border around the main editable document area?


Pintexx Support 01-06-2007, 10:23
Hi,

we will check what goes wrong.
Meanwhile you could edit
editor/config/config.js and set

var globalDocumentMargin = "1";

Regards,
Hans-Peter

Re: How do I remove the the grey background/border around the main editable document area?


Fly Geek 01-08-2007, 8:53
Thanks.  That works.