Which WYSIWYM editor to use? - internet-explorer-8

I need a WYSIWYM markdown editor for my web application and I heard WMD was the obvious choice.
To my surprise WMD breaks in IE8. What other option do I have, or is there a version that's been tested on IE8 and is compatible?

Check out wmd-new. According to its website:
This version of WMD has been tested with IE 6, 7 and 8 RC1, Firefox 3, Safari 3.2, Chrome 1.0 and Opera 9.6. iPhone and iPod Touch support is rumored to work with the exception of the link/image prompt location. There are a few (minor) known issues with keyboard handling in IE and Opera. See the issues page for more details.
[...]
NOTE
Version 2.0 of this code was developed as a private bugfix/feature branch for Stackoverflow.com and is missing most of the optional features found in the original WMD as SO did not use them. Now that I'm putting this out on Google Code I'll be adding the new features back in v2.1 due out sometime in February 2009. Version 3.0 should be released in February/March 2009 and will a major rewrite making use of jQuery.
EDIT: I didn't notice it immediately but this project hasn't release any source code.
EDIT2: As pointed out by warren in a comment, a "Stack Overflow branch of WMD" is hosted on github. See Reverse Engineering the WMD Editor for more details.

I haven't used WYMeditor myself, but their supported browsers are:
Gecko-based browsers (Firefox 2.0+, SeaMonkey, Galeon, Epiphany, ...)
Microsoft Internet Explorer 6, 7 and 8
Opera 9.5+
Safari 3.1+
Google Chrome

The version of WMD on derobins' github should work fine with IE8.

There is one listed on the wikipedia page - but I've not used it: WYMeditor

I sugest Tinymce a wonderful Javascript WYSIWYG Editor, with loads of functionalities, and its opensource, it as versions for PHP, ASP, JSP and CouldFusion, multi language, and some others functions, very simple to customize with only the specific functions you want him to enable for your users.
Check out Tinymce website:
http://tinymce.moxiecode.com
Regards
EDIT:
I been using it for the past two years never had any problems with it.

Related

Microsoft AntiXSS Alternative

Microsoft's AntiXSS library has been broken for 6 months and it looks abandoned (that may or may not officially be the case). Due to a security issue with previous versions, it is not safe to rollback to an earlier release. Are there any good actively developed alternatives for AntiXSS and web security in general when working with the Microsoft (specifically MVC) stack?
There's a new xss sanitizer shipping with the June 2012 release of the ajax control toolkit. The toolkit was originally using the microsoft anti xss library as well, so they experienced the same problems. The new sanitizer is based off the HtmlAgilityPack
See http://stephenwalther.com/archive/2012/06/25/announcing-the-june-2012-release-of-the-ajax-control-toolkit.aspx
I have the same issue and I've been looking high and low for a solution but haven't found anything else out there.
Basically, I think the only option moving forward is to use some flavour of WMD (like they do here on Stackoverflow)... send it back to the server as WMD markup then save it in the database as HTML and then convert it html when spitting it out on the page on the server.
This could be a good start: http://code.google.com/p/pagedown/
There is a unofficial port of WPL called AntiXSS.NetStandard that support AntiXSS in .NET Standard 2.0 (.NET Core 2.0+, .NET Framework 4.6.1).

How to develop NPRuntime Plugin on Opera in Mac?

I have recently developed the plugin for web browsers on Mac OS X.
Developed by XCode, my bundle located in /Library/Internet Plug-ins.
Chrome, Safari, Firefox catch this plugin but Opera doesn't.
How can my plugin be caught by Opera?
It’s difficult to answer your question without more information about your plug-in.
The plug-in must be located in “/Library/Internet Plug-ins” and the bundle must have a .plugin extension instead of .bundle. Is the plug-in listed in opera:plugins?
This Mozilla Developer Network article on plug-ins should be very useful.
Daniel, Mac Quality Assurance at Opera Software ASA.
How do you declare your plugin info (name, version, MIME types, etc.)? Most browsers support the new Info.plist method, but it may be that Opera requires that you also use the old resource-bassed approach.
Try creating a FireBreath Plugin and then look at what differs between how it works and how you built yours. Alternately, just use a FireBreath plugin -- it's a heck of a lot easier to deal with than making your NPAPI plugin from scratch and works around a lot of browser issues and inconsistencies.
FireBreath plugins work as NPAPI plugins on mac and have been reported to work in Opera.
I spent weeks looking for the solution, but it appeared incredibly simple: rename YourPlugin.bundle to YourPlugin.plugin !
Did not even require the .rsrc file as it was recommended elsewhere.
:)
You could try putting you plugin in /Library/Internet Plug-Ins/ When opera didn't load the plugin.
I do not know why this will happen since opera said it could be put # ~/Library/Internet Plug-ins/ Opera Document

Is the OpenLaszlo DHTML runtime production ready?

As a long time time Flex developer I've thought about building my next application - which should run on the iPad as well - with OpenLaszlo. OpenLaszlo offer a Flash and DHTML runtime, but besides the demos on the website I don't see any real world application built with OpenLaszlo:
http://openlaszlo.org/showcase
Has anyone built a large application with the DHTML runtime, and what was your experience doing that.
Thanks!
I've tested our complicated video editing application under HTML5 mode of OpenLaszlo (formerly known as DHTML mode) and everything works aside from the text mis-aligning a bit. Audio and Video playback is not available in the latest official release (4.9.0) but the latest nightly builds ( http://download.openlaszlo.org/nightly/trunk/ ) contain the html5video and html5audio classes which work fine for media types that play in the new HTML5 and tags (different browsers support different ones). My test results of what works can be viewed here:
http://jira.openlaszlo.org/jira/browse/LPP-10058
In regards to iPad, everything seemed to work fine except that it was not possible to programmatically play more than 1 video/audio item at a time without user interaction. However, this seems to be a limitation of iPad and not OpenLaszlo since a test HTML5 application suffered the same limitation.
http://www.pandora.com and http://www.gliffy.com are large applications built on OpenLaszlo Framework.
The DHTML runtime (or the ability to generate an HTML5 application, as we'd probably phrase that feature today) has been added to OpenLaszlo with 4.0 release in March 2007. The first time I saw a version of Laszlo Webtop running using the DHTML runtime was in mid 2009, although Laszlo Calendar wasn't working at that moment. In March 2011 I witnessed a much improved version of Webtop running in DHTML mode, the system looked very stable.
In July 2012 Gliffy announced the Gliffy HTML5 Editor Preview. Gliffy is an online diagram editor, which has been around for a number of years - but in the past it was only running as a Flash application. Gliffy is a very complex application with a large code base, and it's a good sign that Gliffy is able to run on the DHTML runtime. I haven't found any information on the Gliffy website to which browsers are supported by the HTML5 preview.
Based on this information I would say that the DHTML runtime is production ready. The only question is if Laszlo or Critical Path (the company which acquired Laszlo) is going to keep funding the project in the future, since the number of developers working on the platform at the moment is very low.
Laszlo has not upgraded the HTML5/DHTML runtime to support the newer version of IE (IE9+), although it seems that the company is working on improving the DHTML support for IE at the moment (as of summer 2012). If you are planning to use the DHTML runtime for only some browser (Chrome, Firefox, Safari), everything should work relatively well.
If you plant to develop an OpenLaszlo application using the DHTML runtime, I'd recommend that you use the Trunk version (upcoming 5.0 release) of OpenLaszlo, since a lot of bugs have been fixed in Trunk for DHTML.Despite the fact that it hasn't been released, a number of developers are using that version already for production purposes.

How can I embed firefox in a GUI application?

Has anyone ever embedded the firefox web browser technology in their own [unmanaged] C/C++ GUI application in the same way that IE can be embedded as a COM object? (I would like to do this on Linux, not Windows). Are there "better" alternatives to firefox? I'm open to anything as long as I can use it with non-GPL code. My needs are fairly basic; I only need fundamental HTML parsing and display of static local files, but I'd take advantage of more sophisticated technology, if I can get it. I'd like to be able to use JavaScript, but I can get by without it.
First you need to differentiate between HTML engine and JavaScript Engine.
Firefoxs HTML rendering engine is called Gecko. And here is a guide about Embedding Gecko in your application.
Firefoxs JavaScript engine is called SpiderMonkey and here is How to Embed SpiderMonkey in your C application
Check out webkitgtk. It's not Gecko, but Webkit based. It basically provides a web browser widget that can be used in GTK+ applications. If you want to embed mozilla, there are things in the mercurial repositories for Mozilla repository that let you do it, but it didn't seem heavily supported last I checked.
as stated by Mozilla
Embedding of Gecko is no longer supported
so have a look on either previous mentioned Chromium Embedded Framework or WebKit. Alternatively, you can follow Mozilla's new project https://servo.org/.
You will find some more up to date information on Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
It is possible to use parts of Firefox (such as the Gecko renderer) in other apps. There are various approaches to this, including wxWebConnect, a web browser control for wxWidgets. See also Embedding Gecko
Another popular solution is WebKit. Again, there are various ways you can use this, including QtWebKit (a wrapper for the Qt toolkit) and webkitgtk (already mentioned by SB).
Have a look at CEF (Chromium Embedded Framework). It is very similar to WebKit and it also has built-in HTML and JavaScript engines embedded but has better WebGL and HTML5 Canvas support. It is released under BSD license.

Use Google Chrome/ Chromium instead of WebKit on MacOS

I would like to use Google Chrome instead of the WebKit Framework in one of my projects. I found the 'chromiumembedded' project for Windows but nothing similar for Mac. Best would be to have it in form of a Framework to just drop it into a XCode project.
Question: Is there an easy way to integrate the Webkit of Google Chromium in own MacOS X projects?
There are xcode project files throughout the Chromium code and you'll find that WebKit has its own xcodeproj files. Note that Chromium's WebKit routinely merges with the trunk WebKit and upstreams its changes. I don't really see why you'd want to go through the trouble of pulling from the Chromium's WebKit tree rather than getting it from the head WebKit revision. However you should be able to grab the {$chromium_trunk}/src/third_party/WebKit directory to get Chromium's version of WebKit. There aren't any dependencies on the Chromium browser specific code so that won't be an issue.
What are you trying to get from this; a rendering engine or a browser? The ambiguity in your question leaves a lot of confusion in interpretation.
If your looking at embedded browsers you may want to check out Android's WebKit browser. Android is open source as well.
Are you aware that Google Chrome already uses WebKit?
Quote from here
We owe a great debt to many open source projects, and we're committed to continuing on their path. We've used components from Apple's WebKit and Mozilla's Firefox, among others - and in that spirit, we are making all of our code open source as well. We hope to collaborate with the entire community to help drive the web forward.
Answering to my own question:
https://bitbucket.org/chromiumembedded/cef
Since they don't seem to have a working Mac version up for the general public, I would assume that this does not exist unless you happen to be a Google employee.

Resources