On Tue, 6 Jun 2006 08:04:16 -0700, richs@whidbey.net wrote:
On Jun 6, 2006, at 6:48 AM, Eric Stadtherr wrote:

> Krishna,
>
> I am currently working on adding a toggle button to the "compose"
> display to select between HTML and Plain Text formats. I have the
> toggle implemented, and I'll release another revision of the patch
> shortly. The only thing I have yet to address is how to convert
> from HTML to plain text when the option is toggled in that
> direction There are a couple discussions about this topic in the
> TinyMCE discussion forums. It's not a trivial thing to preserve
> the formatting of an HTML document in plain text. The options are:
>
> Strip the HTML tags using strip_tags() and just leave the text
> without any formatting.
> Write or integrate an HTML=>text renderer (similar to what would be
> in a text-only web browser)
> Clear the contents of the text field when switching editor types
> Any thoughts from the group?

How about making the message Multi-Part MIME (text and html
simultaneously)? Although that probably means modifications to the
sendmail.inc.


Making the multipart/alternative MIME message is easy once you have both an HTML and a plain text version of the same body text.  The problem is, if the user uses the HTML editor to compose the message, all we have is the HTML version of the content.  We then have to render/convert the HTML content into plain text (while hopefully trying to preserve formatting such as lists, tables, indenting, etc).  I know Thunderbird does this quite well (behind the scenes if you choose the "Send in both HTML and plain text" option), so users might expect the same behavior from RoundCube™.  Right now I'm just sending the HTML content-type if the HTML editor is used (and vice versa).

 


>
>
> -Eric
>
> On Tue, 6 Jun 2006 09:19:38 -0300, "Krishna Oliveira de Hollanda
> Padilha" wrote:
>
> Hi,
>
> I´ve applied the path on trunk 259 and it worked very well! Thanks!
> Just two points:
> Is there a way to change back the message to text edit only?
> Is there a way to use the available googie spell feature with tinymce?
> Thank you all!
> Krishna
>
>
> 2006/6/2, Chris Fordham : I do not know why it
> doesn't work in v8.0, do they know why - whether it
> is the UA or the code?
> It is fair enough that it works in v9, however v9 is not even
> released yet.
> When v9 comes out most Opera users will upgrade, so it doesn't really
> matter.
> So I guess its really not an issue as Opera v9 will go into production
> eventually soon.
>
> On Fri, 02 Jun 2006 23:41:32 +1000, Eric Stadtherr
>
> wrote:
>
> > Do you think Opera8 incompatibility is a show-stopper for this
> feature?
> > If you
> > peruse the forums at the TinyMCE web site, the developers seem
> pretty
> > responsive
> > to fixing browser issues as long as they're not working around
> behaviors
> > that
> > are obvious browser bugs.
> >
> > On Fri, 02 Jun 2006 21:52:46 +1000, "Chris Fordham" wrote:
> >
> > In Opera v8.x it just doesn't seem to load the plugin. see
> attachement.
> >
> > I just tested v9b on Win32 and yeah it seems fine.
> >
> > On Fri, 02 Jun 2006 00:30:17 +1000, Eric Stadtherr
>
> > wrote:
> >
> >> Chris,
> >>
> >> Here is a URL with some of the compatibility information about
> TinyMCE:
> >>
> >> http://tinymce.moxiecode.com/tinymce/docs/compatiblity_chart.html
> >>
> >> I have done 90% of my work on Firefox/MacOS10.4, with some
> Firefox/Linux
> >> and
> >> Safari/MacOS10.4 testing as well. Safari doesn't work great, but
> I have
> >> heard
> >> some things about Safari's JavaScript interpreter that point to
> Safari
> >> as the
> >> source of the problem.
> >>
> >> TinyMCE has a lot of fancy plugins - in fact, you can make it work
> >> pretty much
> >> like M$ Word if you configure it correctly. I believe the
> plugins that
> >> are "MSIE
> >> only" are some of the "fluff" plugins (like the "iespell" spell
> checker,
> >> the
> >> graphics object z-layering, etc.). All of the more "normal" HTML-
> based
> >> formatting plugins (styles, fonts, colors, links, images, etc.)
> have
> >> worked fine
> >> on Firefox.
> >>
> >> What happened when you tried to use Opera with their example page?
> >>
> >> -Eric
> >>
> >> On Thu, 01 Jun 2006 16:58:43 +1000, "Chris Fordham" wrote:
> >>
> >> I went to the TinyMCE site to check out the examples. It didn't
> seem to
> >> load in my Opera on both Linux and Windows at all.
> >>
> >> In addition i found this on the site:
> >>
> >> "This page shows all available plugins that are included in the
> TinyMCE
> >> distribution. Some of these plugins will only be visible on MSIE
> due to
> >> the lack of some support in FF. For more details on the various
> options
> >> on
> >> TinyMCE check the manual or for more third party plugins check the
> >> plugin
> >> section."
> >>
> >> I am just thinking if this plugin is extensible enough to deply
> with RC?
> >> IMHO everything should work in Opera, MSIE and Firefox without
> >> exceptions
> >> (or at least without major exceptions)
> >>
> >> Am I missing something here? I really would like to see the
> WYSIWYG work
> >> in Opera.
> >>
> >>
> >> Chris
> >>
> >>
> >> On Thu, 01 Jun 2006 01:49:12 +1000, Eric Stadtherr
> >>
> >> wrote:
> >>
> >>> Hi all,
> >>>
> >>> I have been working on integrating the TinyMCE WYSIWYG HTML
> editor into
> >>> RoundCube to be able to compose HTML messages. I posted a
> description
> >>> and some
> >>> screen shots in the forums a little while ago:
> >>>
> >>> URL: http://www.roundcubeforum.net/index.php?topic=177.0
> >>>
> >>> Topic: HTML / Wyswig Editor for sending mail ?
> >>>
> >>> I recently merged my code into the latest revision of the
> SubVersion
> >>> trunk (r254),
> >>> so the patch should go smoothly with any recently obtained working
> >>> copy.
> >>> The
> >>> patch requires downloading and installing the TinyMCE package from
> >>> http://tinymce.moxiecode.com
> >>> at the same level as RoundCube in your web server document folder
> >>> hierarchy. I
> >>> made the patch available for download here:
> >>>
> >>> http://stadtherr.bounceme.net/files/tinymce_rev254.patch
> >>>
> >>> The patch contains a couple other minor changes that I can
> separate out
> >>> if
> >>> necessary:
> >>>
> >>> fixed variable name typos in main.inc
> >>>
> >>> fix to url_chars in func.inc (it used to split URLs on ";"
> characters)
> >>>
> >>> I've tested it with forwarding various commercial HTML
> messages, and
> >>> composing/replying
> >>> to my own messages. The editor itself supports a large number
> of HTML
> >>> features,
> >>> but a subset of those features can be made available by
> initializing
> >>> the
> >>> editor
> >>> differently in the JavaScript code (see the "tinyMCE.init()"
> call in
> >>> compose.inc,
> >>> and the TinyMCE documentation for details).
> >>>
> >>> I'd like to add a checkbox/toggle in the compose window to
> allow users
> >>> to choose
> >>> between HTML/plain-text when composing a message - that's next
> on my
> >>> list.
> >>>
> >>> Take a look and let me know what you think, and if it sounds like
> >>> something that
> >>> should go into the baseline.
> >>>
> >>> Thanks for all the great work! I chose RoundCube after trying
> out 5 or
> >>> 6
> >>> other
> >>> WebMail applications. Some others had more features, but the
> RoundCube
> >>> user
> >>> interface made all the difference!
> >>>
> >>> -Eric Stadtherr
> >>>
> >>
> >>
> >>
> >> --
> >> Using Opera's revolutionary e-mail client: http://www.opera.com/
> mail/
> >
> >
> >
> > --
> > Using Opera's revolutionary e-mail client: http://www.opera.com/
> mail/
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
>
>
>
>
> --
> Krishna Padilha
>