<?xml version="1.0" encoding="ISO-8859-1"?> 
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Font and Font Size choices for Xinha editor</title> 
  <pubDate>Thu, 18 Mar 2010 23:54:40 -0400</pubDate> 
  <link>http://bugs.horde.org/ticket/6456</link> 
  <atom:link rel="self" type="application/rss+xml" title="Font and Font Size choices for Xinha editor" href="http://bugs.horde.org/ticket/6456/rss" /> 
  <description>Font and Font Size choices for Xinha editor</description> 
 
   
   
  <item> 
   <title>I made the attached changes and the Font and Size for the HT</title> 
   <description>I made the attached changes and the Font and Size for the HTML IMP editor can now be

set in the compose options menu.  I tried to send the mods through the list but they

were too long for the post.  Do you think this can be added to the project?  I have

tested in IE, Mozilla, and Safari and it seems to work for all.





</description> 
   <pubDate>Mon, 17 Mar 2008 07:37:26 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43877</link> 
  </item> 
   
  <item> 
   <title>Please provide your changes as a unified diff.</title> 
   <description>Please provide your changes as a unified diff.</description> 
   <pubDate>Mon, 17 Mar 2008 10:21:50 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43886</link> 
  </item> 
   
  <item> 
   <title>Jan,

    I have no idea how to do that :-(

-D-

</title> 
   <description>Jan,

    I have no idea how to do that :-(

-D-

</description> 
   <pubDate>Mon, 17 Mar 2008 10:51:10 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43889</link> 
  </item> 
   
  <item> 
   <title>Compose.diff:



199c199,202

&lt;                 $params['con</title> 
   <description>Compose.diff:



199c199,202

&lt;                 $params['config']['pageStyle'] = 'body{font-size:75%;}.imp-signature{background-color: #eee;}';

---

&gt; 

&gt;                   $params['config']['pageStyle'] = 'body{font-family:' .($GLOBALS['prefs']-&gt;getValue('XinFont')). '; font-size:' .($GLOBALS['prefs']-&gt;getValue('XinFontSize')). ';}.imp-signature{background-color: #eee;}';

&gt; 

&gt; 



Is this way what you are looking for?

</description> 
   <pubDate>Mon, 17 Mar 2008 11:01:21 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43893</link> 
  </item> 
   
  <item> 
   <title>Prefs.diff:



495a493,523

&gt; // XinDefaultFont

&gt; $_prefs['</title> 
   <description>Prefs.diff:



495a493,523

&gt; // XinDefaultFont

&gt; $_prefs['XinFont'] = array(

&gt;     'value' =&gt; 'Arial',

&gt;     'locked' =&gt; false,

&gt;     'shared' =&gt; false,

&gt;     'type' =&gt; 'enum',

&gt;     'enum' =&gt; array('Arial' =&gt; _(&quot;Arial&quot;),

&gt;                     'Courier New' =&gt; _(&quot;Courier New&quot;),

&gt;                     'Georgia' =&gt; _(&quot;Georgia&quot;),

&gt;                     'Tahoma' =&gt; _(&quot;Tahoma&quot;),

&gt;                     'Times New Roman' =&gt; _(&quot;Times New Roman&quot;),

&gt;                     'Verdana' =&gt; _(&quot;Verdana&quot;),

&gt;                     'impact' =&gt; _(&quot;Impact&quot;),

&gt;                     'WingDings' =&gt; _(&quot;WingDings&quot;)),

&gt;     'desc' =&gt; _(&quot;HTML Editor Default Font:&quot;));

&gt; 

&gt; //Html Editor Font Size

&gt; $_prefs['XinFontSize'] = array(

&gt;     'value' =&gt; '10pt',

&gt;     'locked' =&gt; false,

&gt;     'shared' =&gt; false,

&gt;     'type' =&gt; 'enum',

&gt;     'enum' =&gt; array('8pt' =&gt; _(&quot;8pt&quot;),

&gt;                     '10pt' =&gt; _(&quot;10pt&quot;),

&gt;                     '12pt' =&gt; _(&quot;12pt&quot;),

&gt;                     '14pt' =&gt; _(&quot;14pt&quot;),

&gt;                     '18pt' =&gt; _(&quot;18pt&quot;),

&gt;                     '24pt' =&gt; _(&quot;24pt&quot;),

&gt;                     '36pt' =&gt; _(&quot;36pt&quot;)),

&gt;     'desc' =&gt; _(&quot;HTML Editor Default Font Size:&quot;));

&gt; 

499c527



If this is not what is desired if you can let me know how to prepare it I will do what is needed.

-D-</description> 
   <pubDate>Mon, 17 Mar 2008 13:11:28 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43897</link> 
  </item> 
   
  <item> 
   <title>&gt; Is this way what you are looking for?



Almost, though th</title> 
   <description>&gt; Is this way what you are looking for?



Almost, though this is a context diff, not a unified diff, and please upload them as attachments to this ticket.



But your patch doesn't work anyway. Unless I'm missing somthing, it's only setting the default font for the display when composing a message. This font should never get sent with the actual message though.</description> 
   <pubDate>Mon, 17 Mar 2008 13:17:49 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43898</link> 
  </item> 
   
  <item> 
   <title>I guess ideally you would want it to get sent with the messa</title> 
   <description>I guess ideally you would want it to get sent with the message..  Did not see that before.  What are the steps to create a unified diff?  I will look into this further and see if the font can carry with the message...  But if I don't know how to diff it to you I guess it won't matter much.



-D-</description> 
   <pubDate>Mon, 17 Mar 2008 13:26:17 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43900</link> 
  </item> 
   
  <item> 
   <title>However you made these diffs, add -u to the arguments to the</title> 
   <description>However you made these diffs, add -u to the arguments to the diff program.</description> 
   <pubDate>Mon, 17 Mar 2008 17:18:07 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43936</link> 
  </item> 
   
  <item> 
   <title>This may help you: http://www.horde.org/source/contribute.ph</title> 
   <description>This may help you: http://www.horde.org/source/contribute.php</description> 
   <pubDate>Mon, 17 Mar 2008 17:19:03 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43937</link> 
  </item> 
   
  <item> 
   <title>Chuck,

       Thanks that will help greatly.



Jan,

  I w</title> 
   <description>Chuck,

       Thanks that will help greatly.



Jan,

  I will download the latest head and I have not given up on this.  I have the editor displaying a chosen font.  I just need to get that into the &lt;p&gt;&amp;nbsp;&lt;/p&gt; tag in the textarea.  I am reading more about Xinha and I am going to see this through 8)



-D-</description> 
   <pubDate>Mon, 17 Mar 2008 18:35:10 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43943</link> 
  </item> 
   
  <item> 
   <title>Here's what I have so far.  This works completely if the use</title> 
   <description>Here's what I have so far.  This works completely if the user has a signature.  I need a little help on applying it when they don't thoughts?



Thanks

-D-



P.S. I have attached the files in the requested format in a zip file.</description> 
   <pubDate>Mon, 17 Mar 2008 19:09:57 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43946</link> 
  </item> 
   
  <item> 
   <title>Well I did more digging and find that adding a span tag work</title> 
   <description>Well I did more digging and find that adding a span tag works much more consistently in Firefox but in IE7 I get:

XSSCleaned=&quot;font-family: impact;&quot; This seems like a Horde behavior to me..  I know IE7 does not provide this protection.  So the bottom line is I have figured out a way to get the font to display in the editor in a chosen font and with the span tag the entire body of the message is sent and received in the drafted font in Firefox.  Not sure why the XSSCleaned=&quot;font-family: impact;&quot; does not work in firefox.  If you can elaborate on this I would appreciate it.  I think the ability to select the font would be a nice addition.



Thanks,

-D-    </description> 
   <pubDate>Tue, 18 Mar 2008 20:37:05 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43980</link> 
  </item> 
   
  <item> 
   <title>If you are replying to HTML messages they are run through th</title> 
   <description>If you are replying to HTML messages they are run through the XSS filter. This filters out some tags and attributes depending on the browser version.</description> 
   <pubDate>Wed, 19 Mar 2008 06:10:11 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43987</link> 
  </item> 
   
  <item> 
   <title>&gt; If you are replying to HTML messages they are run through </title> 
   <description>&gt; If you are replying to HTML messages they are run through the XSS 

&gt; filter. This filters out some tags and attributes depending on the 

&gt; browser version.



Can I submit my latest changes to you and see if they are acceptable?</description> 
   <pubDate>Wed, 19 Mar 2008 08:58:48 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t43991</link> 
  </item> 
   
  <item> 
   <title>Here are the latest diffs.  I found through testing that the</title> 
   <description>Here are the latest diffs.  I found through testing that the span tag is the best to provide this functionality.  If there is a way to get that HTML cleaner to allow the span style command that would be good.  In Netscape the span work perfect.  It's Internet explorer where horde is involved the class gets scrubbed.   If not I see that '&lt;p class=&quot;imp-signature&quot;&gt;' is allowed..  I am not sure how to add a class .imp-font and provide it that way...  I am assuming that '&lt;span class=&quot;imp-font&quot;&gt;' may make it by the filter.  Where would I go to add that class?



-D-</description> 
   <pubDate>Wed, 19 Mar 2008 18:19:17 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44026</link> 
  </item> 
   
  <item> 
   <title>&gt; I found through testing that the span tag 

&gt; is the best </title> 
   <description>&gt; I found through testing that the span tag 

&gt; is the best to provide this functionality.



Not really, because SPANs are inline tags that can't be put around block tags.



&gt; If not I see that '&lt;p 

&gt; class=&quot;imp-signature&quot;&gt;' is allowed..  I am not sure how to add a 

&gt; class .imp-font and provide it that way...  I am assuming that '&lt;span 

&gt; class=&quot;imp-font&quot;&gt;' may make it by the filter.  Where would I go to 

&gt; add that class?



That wouldn't help because the recipient client doesn't know about this class. That's why we use the imp-signature class; it's only rendered in IMP's compose screen.



Btw, it's possible to create patches that covers all modified files at once. Much easier than creating a ZIP file each time.</description> 
   <pubDate>Thu, 20 Mar 2008 08:06:25 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44039</link> 
  </item> 
   
  <item> 
   <title>&gt; Btw, it's possible to create patches that covers all modif</title> 
   <description>&gt; Btw, it's possible to create patches that covers all modified files 

&gt; at once. Much easier than creating a ZIP file each time.



Will man diff show me how to do the above?  I still think that the ability to choose the font that you see in the editor, even if it does not show on the recipients side would still be a good enhancement.  I do see that when I send messages to Outlook and other popular clients that the fonts do stay in tact with the latest changes I uploaded.  Can you think of another way to keep the tag from getting cleaned by horde?



-D-  </description> 
   <pubDate>Thu, 20 Mar 2008 08:11:54 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44044</link> 
  </item> 
   
  <item> 
   <title>The only way to implement this properly as I see it, is to c</title> 
   <description>The only way to implement this properly as I see it, is to change the code so that we create a complete HTML document when sending HTML messages. At the moment we only send HTML snippets. This HTML document could contain a font style for the body.</description> 
   <pubDate>Thu, 20 Mar 2008 08:30:12 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44053</link> 
  </item> 
   
  <item> 
   <title>&gt; The only way to implement this properly as I see it, is to</title> 
   <description>&gt; The only way to implement this properly as I see it, is to change the 

&gt; code so that we create a complete HTML document when sending HTML 

&gt; messages. At the moment we only send HTML snippets. This HTML 

&gt; document could contain a font style for the body.



Is that something that could happen?  You are speaking in terms of placing a body tag with the class directive for font and size?</description> 
   <pubDate>Thu, 20 Mar 2008 09:12:34 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44059</link> 
  </item> 
   
  <item> 
   <title>&gt; Is that something that could happen?



If you, or anybody</title> 
   <description>&gt; Is that something that could happen?



If you, or anybody else, is providing a patch, yes.



&gt; You are speaking in terms of 

&gt; placing a body tag with the class directive for font and size?



No. CSS rules for body tag, or style attributes inside the body tag.</description> 
   <pubDate>Thu, 20 Mar 2008 09:34:26 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44061</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Is that something that could happen?

&gt;

&gt; If you, or any</title> 
   <description>&gt;&gt; Is that something that could happen?

&gt;

&gt; If you, or anybody else, is providing a patch, yes.

&gt;

&gt;&gt; You are speaking in terms of

&gt;&gt; placing a body tag with the class directive for font and size?

&gt;

&gt; No. CSS rules for body tag, or style attributes inside the body tag.



I will look through the code and see what I can come up with.  Any hints on where I can find the parts that you speak of.  Would this be compose.php?



P.S. Thanks for taking the time to answer the many questions.  I know you guys are very busy.



-D-

</description> 
   <pubDate>Thu, 20 Mar 2008 18:14:47 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44098</link> 
  </item> 
   
  <item> 
   <title>Well I am stuck on this.  I am not sure of how to build a bo</title> 
   <description>Well I am stuck on this.  I am not sure of how to build a body tag into the message.  Any suggestions?



-D-</description> 
   <pubDate>Mon, 24 Mar 2008 07:49:58 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44167</link> 
  </item> 
   
  <item> 
   <title>I was not asking that you do it just to give me some guidanc</title> 
   <description>I was not asking that you do it just to give me some guidance on where I should look to add this.  I am still new to the backend of IMP.  Any pointers?



-D-

</description> 
   <pubDate>Wed, 02 Apr 2008 08:28:09 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t44312</link> 
  </item> 
   
  <item> 
   <title>All of this is irrelevant as Xinha is no longer a supported </title> 
   <description>All of this is irrelevant as Xinha is no longer a supported editor for IMP.</description> 
   <pubDate>Mon, 30 Mar 2009 19:20:32 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/6456#t53395</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
