Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  weird htmlarea problem

phpMyEdit Features     weird htmlarea problem
Odoslať novú tému   Odpovedať na tému   Choď na stránku Predchádzajúci  1, 2  
 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2004-10-07 09:56
Návrat hore  Odpovedať s citátom     

Well found!

What have you used to get it to work? I'd like to try and update the code so that it automatically generates codes that works.

Thanks

Adam

 
phirschybar     Založený: 18.09.2003   Príspevky: 43  
Príspevok Zaslal: 2004-10-07 14:57
Návrat hore  Odpovedať s citátom     

I used the very first hack on that thread. Unfortunately, its an ugly hack to the htmlarea.js file. Maybe you can find another way to do it without messing with this file. But it works and this definitely the problem

Ben

 
phirschybar     Založený: 18.09.2003   Príspevky: 43  
Príspevok Zaslal: 2004-10-07 15:04
Návrat hore  Odpovedať s citátom     

One more thing: Do you know how to make the HTML created from HTMLArea be generated in LIST view. So, if sombody makes a word bold or creates a link, it would be cool to see the ACTUAL link in LIST view rather than the "a href" junk. I know strip_tags is an option but it would be great to get the real deal... any thoughts?

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2004-10-07 15:29
Návrat hore  Odpovedať s citátom     

Have you tried setting the 'escape' option on that field to 'false'? I would expect that to turn off the quoting of the html.

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.fields.booleans.html

 
phirschybar     Založený: 18.09.2003   Príspevky: 43  
Príspevok Zaslal: 2004-10-07 16:44
Návrat hore  Odpovedať s citátom     

Beautiful.

NOTE: You should have 'strip_tags' AND 'escape' set to false to get it working nicely!

Another question [we should call this the HTMLArea FAQ thread]: I am now getting HTMLArea to be very wide in my table. Too wide, in fact, that it blows out my outside table (no good)in IE. Any way to easily restrict the size of the HTMLArea box?

It seems that even when I change the 'columns' attribute in the calling app, nothing happens. Any advice?

BTW, anything I can help YOU with?

 
hsicard     Založený: 22.10.2003   Príspevky: 17  
Príspevok Zaslal: 2004-11-02 13:11
Návrat hore  Odpovedať s citátom     

phirschybar Napísal:
This is the solution:

http://www.interactivetools.com/forum/gforum.cgi?do=forum_view&forum=14&t=search_engine


Forum has moved and I can't find the hack in the new one. Could you provide us with you hacked version?
Thanks.

 
phirschybar     Založený: 18.09.2003   Príspevky: 43  
Príspevok Zaslal: 2004-11-12 15:37
Návrat hore  Odpovedať s citátom     

http://www.htmlarea.com/cgi-bin/forum/gforum.cgi?post=35105;t=search_engine#35105

This is the new thread

Also, here is the hack:

Kód:
// ugly hack
if (textarea.offsetWidth == 0)
{
   this._ta_size = {
      w: 550,
      h: 250
   };
}
else
{
   this._ta_size = {
      w: textarea.offsetWidth,
      h: textarea.offsetHeight
   };
}


This goes in: HTMLArea.prototype.generate function
Around line 616

 
Odoslať novú tému   Odpovedať na tému   Choď na stránku Predchádzajúci  1, 2  

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov