newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Tinymce: height/width -> Solution #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Andrew,

first thank you for your fast answer. I started working on my little project 
this week again, that's why there was no reaktion.

I found a solution how to set the height < 100px by editing the source code of 
tinymce. Maybe it's interesting for you too?!

First you have to edit includes/tiny_mce/tiny_mce_src.js:

line 9450: h = Math.max(parseInt(h) + (o.deltaHeight || 0), 100);
to: h = Math.max(parseInt(h) + (o.deltaHeight || 0), 40);
line 9475: if (h < 100) to: if (h < 40)
line 9476: h = 100; to: h = 40;

Next edit class.form.php:

line 1709: <script type="text/javascript" 
src="{$this->jsIncludesPath}/tiny_mce/tiny_mce.js"></script>
to: <script type="text/javascript" 
src="{$this->jsIncludesPath}/tiny_mce/tiny_mce_src.js"></script>

Than it works fine.

Benny

Sorry, I wasn't able to answer in the Googlegroup.

Original issue reported on code.google.com by benny.ac...@googlemail.com on 13 Nov 2010 at 4:33