Re:Redactor - javascript (jQuery) WYSIWYG editor
by chmike on Monday May 28, 2012 @03:28PM
(#4034638)
It deserve it's fantastic qualifier. It's the first wysiwyg editor I test that works correctly with iPad. Excellent work.
I would love to make it simpler to insert iPad images. Basically make the upload intermediate step not visible. Unfortunately it is not possible to upload images from the iPad.
edit: unfortunately copy past doesn't work on iPad. The selection is difficult and the copy is simply ignored. Past inserts whatever is in the clipboard.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by ricardobeat on Monday May 28, 2012 @10:30PM
(#4035680)
I had two issues: you have to click on the top of an empty textarea to start editing (guessing the first input position), and text entry stopped working after pressing the bold button.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by chmike on Tuesday May 29, 2012 @02:22AM
(#4036193)
It is the copy operation from inside the editor text area that doesn't work.
If you copy text in another place, it gets stored in the clipboard and the past operation works as expected. If you copy text selected in the editor text area, the clipboard is left unchanged. Pasting gives you whatever was in the clipboard.
So trying to copy text from the editor text area and pasting it in another app or place doesn't work since it's the copy operation that doesn't work.
The text selection is also not working as expected since it behaves slightly differently than other iPad text editable text field. But this is not a real problem.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by d0mine on Tuesday May 29, 2012 @02:50AM
(#4036266)
It most certainly works in the provided example from the article, the same way as in other text editors on iPad. We might have different versions (builtin browser in news:yc on iOS 5.1.1).
Re:Redactor - javascript (jQuery) WYSIWYG editor
by NathanKP on Monday May 28, 2012 @05:37PM
(#4035018)
One fairly important thing I couldn't figure out how to do was move the image around. I guess I expected it to work like Wordpress or Blogger's post editor where you can drag the image around to adjust its location in the text. Instead I could only resize the image using click and drag, not move it.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by alecperkins on Monday May 28, 2012 @05:46PM
(#4035049)
I'd love to see a drag-and-drop editor that doesn't require the image be absolutely positioned and can have text interact with the image. Somewhat like iBooks Author, but without fixed page sizes.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by dools on Monday May 28, 2012 @09:06PM
(#4035528)
That's what we do in Decal[1]. It's very hard to get right - we're reasonably close but it's still a little finicky. Basically while you drag the image around it follows your mouse but when you drop it, it tries to guess the best place to insert it into the HTML so that it will most closely approximate your desired position. You can see it in action without signing up in our instructional video on placing images: http://www.decalcms.com/page/Support/#instructionalVideos
Re:Redactor - javascript (jQuery) WYSIWYG editor
by grayrest on Monday May 28, 2012 @10:07PM
(#4035629)
I haven't used iBooks Author, but you may want to check out Squarespace 6 when we launch in the next few days. I'm very proud of our editing and layout system.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by jQueryIsAwesome on Monday May 28, 2012 @11:34PM
(#4035824)
The image options needs a little bit of work, maybe a button in in the corner to edit the float position (left/right), a little transforming box to change the size when is selected (those little squares in the corners like Photoshop) and the ability to drag it from any other part.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by kijin on Monday May 28, 2012 @03:33PM
(#4034648)
There's a reason why W3C didn't just replace <b> and <i> with <strong> and <em>. A lot of people think they're just equivalent, but a lot of other people disagree. "Please display this in italic" arguably sends a different message from "Please emphasize this", and in some settings they may not be interchangeable.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by celoyd on Monday May 28, 2012 @07:39PM
(#4035380)
The classic example is screen readers. A phrase that’s italicized because it’s important should probably be slightly louder, but a phrase that’s italicized because it’s foreign should probably be pronounced slightly slower. Those are entirely orthogonal things, and it’s useful to distinguish them.
Semantic HTML + CSS can be taken too far, but having separate layers gives you a lot more flexibility than presentational HTML alone, which tends to be very brittle.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by kijin on Monday May 28, 2012 @08:00PM
(#4035427)
If <i> means something different from <em>, you can keep them distinct while keeping everything "semantic". In fact, you could have a dozen different HTML elements for each use case of italics, e.g. <foreign> for foreign words and <t> for titles of books and movies, and it will be a mess, but it will still be "semantic". So the semantic-vs-presentational argument doesn't even apply here.
Meanwhile, the whole concept of using italics for emphasis is a Western idea. CJK languages, for example, don't use italics for emphasis, and most of their italic fonts actually look terrible on screen.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by callum85 on Monday May 28, 2012 @04:50PM
(#4034881)
Just to expand on kijin's reply...
In HTML5, <i> and <b> now have the deliberately vague semantic definitions of "alternate voice" and "stylistically offset" – this could cover emphasis, book/film names, key words, foreign phrases, etc. Incorrect use of the more specific semantic tags (eg. generating <em> when the user sets a film title to "italic") is worse than a lack of semantic detail.
HTML5 was designed with the understanding that not all web content can be authored by someone who knows the correct use of semantic HTML tags like <cite>, <em>, <strong>, <mark>, etc. Application-level copy can use those tags, but a rich text editor (for normal people) can't know which one is appropriate, so it should always default to the vague ones, <b> and <i>.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by nabilt on Monday May 28, 2012 @07:40PM
(#4035381)
I just added bootstrap-wysihtml5 to a project and I'm liking it. My only problem is it won't let me type comments in the HTML view and I can't figure out how to dynamically resize the text area. Redactor seems to let you do this. Looking forward to trying this out as well.
Edit: Redactor looks like it retains formatting for the HTML. That's enough to make me switch.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by skyhook_mockups on Monday May 28, 2012 @05:06PM
(#4034923)
This is ok... although there are lots of better alternatives. Some issues:
- No way of adding headings? * edit: sorry it's under styles.
- Clicking bold, italic etc should expand the selection to the word that the cursor is in.
- Setting formatting should restore the cursor to the editing area
- Clicking into a formatted area should toggle the buttons in the toolbar that apply
- image alignment a little clunky. Why not add a simple overlay for align centre|left|right on mouseover?
On the plus side image resizing is done well.
One thing that annoys me no end is that all editors I've ever used apply block level formatting (h1,2,3 etc) for an entire paragraph when only a sentence is selected. The most intuitive approach would be to break the sentence out of the paragraph and style only it. As a user I expect what I have highlighted to change not all of the surrounding text as well!
These things aren't easy to get right, especially cross browser. I recently put together an editor to exactly suit my needs (uses contenteditable instead of an iframe), but it's chrome, firefox and ie9+(? i think) only. Trying to get something usable across legacy browsers is ridiculously hard.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by joe_the_user on Monday May 28, 2012 @06:50PM
(#4035254)
I played with such javascript things a few years ago.
They were indeed hard to create and (at least then) relied on a detailed know of the browser and platform's characteristics.
But given the varying tasks which call for that kind of editor, what I'd really like to see is a small semi-standard tool or framework for the construction of such editors. As it is now, one must either use an existing tool having too many or too few features or go to the great lengths of modifying one.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by jabo on Monday May 28, 2012 @03:35PM
(#4034657)
I don't like the fact that when I resize the editor the content disappears until I complete the resize. During the resize (click on the tab at the bottom and drag), the content disappears.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by fidz on Tuesday May 29, 2012 @12:59AM
(#4036038)
I wonder why people make so much different rich text editor. while i only use Markdown format for my projects. I wonder about the Rich Text to HTML compatibility (some rich text editor have problem with interpreting formatted text into the HTML, since then i afraid to use rich text editor and more using it).
Re:Redactor - javascript (jQuery) WYSIWYG editor
by jakejake on Tuesday May 29, 2012 @01:21AM
(#4036077)
Markdown is great for projects where the users don't mind writing using code. WYSISYG editors are nice for people who are not technical at all to manage their website and things like that.
They do sometimes produce really terrible HTML though, especially because people copy/paste from MS Word and it results in a bunch of garbage.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by chmike on Tuesday May 29, 2012 @02:35AM
(#4036219)
Markdown has a lot of shortcoming because it maps to basic html. i.e. It ignores starting numbers and numbering gaps.
Markdown is not a standardize encoding. Many markdown editors don't support tables for instance.
Finally, as an editor, it lacks the easiness to add images and such. They need to be uploaded in a web server.
It thus has significant limitations before it can be considered a serious rich text alternative.
I do use it and I would love it had a better support because it is easy. What I like is that when writing we focus on the text, not the formating. Formatting is implicit.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by alecperkins on Monday May 28, 2012 @05:25PM
(#4034983)
The fullscreen mode is a nice touch, as is the image resizing, provided the cursor doesn't leave the image boundary. It's frustrating that, like other editors, it doesn't differentiate so well between line and block actions. Also, I was very disappointed that I couldn't drag the image to reposition it.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by antiterra on Monday May 28, 2012 @03:38PM
(#4034665)
Looks nice, but I was unable to stretch the image back to its original size after shrinking it. It kind of inches a little bit and then stops. It's irritating to see the page announce itself as "fantastic" when it's clearly not properly finished.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by kalininalex on Monday May 28, 2012 @04:39PM
(#4034851)
Interesting. It's seem to be the issue with capturing mouse events. If you move the mouse out of the image quickly, it'll lose it and the resize will stop. But if you move the mouse slowly so that it always stays over the image, it'll resize it. It's a workaround to use for now (but sure, it's a problem with the implementation).
Re:Redactor - javascript (jQuery) WYSIWYG editor
by aichi on Tuesday May 29, 2012 @05:51AM
(#4036712)
It is maybe nice, but not good, because it is not generating same output in all browsers. Also copying from word (most needed) is not filtered properly and same in all browsers.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by rquantz on Monday May 28, 2012 @05:19PM
(#4034968)
Can anyone recommend an editor with a really good API for making custom buttons? My admittedly shallow research hasn't uncovered anything that is particularly joyful to use.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by josscrowcroft on Monday May 28, 2012 @03:44PM
(#4034688)
Great work, really nice to use. Would love to see this as a WordPress plugin (sick of the default editor) but that would require plugin support, as per the roadmap.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by amper5and on Monday May 28, 2012 @02:12PM
(#4034382)
There's no caveat. It says "Redactor распространяется бесплатно по лицензии MIT или GPL, на ваш выбор." which literally means "Redactor is distributed freely under the MIT or GPL licenses - it's your choice."
Edit: This goes to the lack of English docs, not to your misunderstanding I'm sure.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by wvl on Friday June 01, 2012 @01:26PM
(#4054548)
Looking at this again 3 days later, it seems the license has been changed again. The license is now the "Creative Commons Attribution-NonCommercial 3.0 license.", and they're charging for commercial use.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by alanh on Monday May 28, 2012 @03:55PM
(#4034714)
These are terrifically hard to make, and I applaud anyone who take the time and effort.
But, a problem: Tapping Bold with no text highlighted (the expectation is that whatever you type next is bold) not only doesn’t work, but steals focus and you lose your cursor
You should not consider this library production-ready!
Re:Redactor - javascript (jQuery) WYSIWYG editor
by bergie on Monday May 28, 2012 @02:17PM
(#4034400)
Yep, Aloha is very cool, especially now that they're replacing ExtJS with jQuery UI to make it lighter. It is unfortunate that they've stuck with the problematic AGPL, though.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by bergie on Monday May 28, 2012 @03:07PM
(#4034569)
It differs from GPL in that it is "viral" also when served through the web, so it could mean that your whole web application must either be AGPL, or you must buy an exception from the developer.
AGPL is a new license, and so there are few examples of how it affects things in practice. Many developers (especially ones building open source under less-strict license) prefer to keep their distance.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by mbreese on Monday May 28, 2012 @07:11PM
(#4035305)
Not to mention that there is no way to know how a viral license even works when dealing with a non-linked language like Javascript or HTML.
The goal of the AGPL was to keep people from modifying GPL programs that were essential on the backend, but then keep their modifications hidden. With the normal GPL, if you don't distribute a binary, you don't have to release your code. With the AGPL, the goal was to force people to also release backend code. But code licenses start to get very shaky when we aren't talking about binary-linked modules.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by jscheel on Monday May 28, 2012 @02:30PM
(#4034442)
I'm a big fan of Aloha. I can't wait for them to get extjs out of the system. That, combined with the fact that they include their own copy of jquery (just in case you don't have it loaded) makes the payload beyond crazy for a wysiwyg editor. If you use it, I highly suggest compiling your own minified version that does not include jquery. That will at least get the size down some, at least until the move to jquery ui is complete. Just keep in mind the license whenever you do anything with it. I'm still not convinced anyone understands how AGPL applies to publicly available js.
Re:Redactor - javascript (jQuery) WYSIWYG editor
by joshfraser on Monday May 28, 2012 @03:13PM
(#4034581)
I disagree. The size of the typical webpage is growing at faster rate than people are upgrading to faster internet connections. The average webpage is now > 1MB. It matters because adding even a tenth of a second to your load time can cost you in pageviews and revenue.
I would love to make it simpler to insert iPad images. Basically make the upload intermediate step not visible. Unfortunately it is not possible to upload images from the iPad.
edit: unfortunately copy past doesn't work on iPad. The selection is difficult and the copy is simply ignored. Past inserts whatever is in the clipboard.
If you copy text in another place, it gets stored in the clipboard and the past operation works as expected. If you copy text selected in the editor text area, the clipboard is left unchanged. Pasting gives you whatever was in the clipboard.
So trying to copy text from the editor text area and pasting it in another app or place doesn't work since it's the copy operation that doesn't work.
The text selection is also not working as expected since it behaves slightly differently than other iPad text editable text field. But this is not a real problem.
[1]http://www.decalcms.com/page/4_minute_challenge
http://new.squarespace.com/ <- about halfway through demo video.
Shouldn't it be <strong></strong> ?
Semantic HTML + CSS can be taken too far, but having separate layers gives you a lot more flexibility than presentational HTML alone, which tends to be very brittle.
Meanwhile, the whole concept of using italics for emphasis is a Western idea. CJK languages, for example, don't use italics for emphasis, and most of their italic fonts actually look terrible on screen.
In HTML5, <i> and <b> now have the deliberately vague semantic definitions of "alternate voice" and "stylistically offset" – this could cover emphasis, book/film names, key words, foreign phrases, etc. Incorrect use of the more specific semantic tags (eg. generating <em> when the user sets a film title to "italic") is worse than a lack of semantic detail.
HTML5 was designed with the understanding that not all web content can be authored by someone who knows the correct use of semantic HTML tags like <cite>, <em>, <strong>, <mark>, etc. Application-level copy can use those tags, but a rich text editor (for normal people) can't know which one is appropriate, so it should always default to the vague ones, <b> and <i>.
Edit: Redactor looks like it retains formatting for the HTML. That's enough to make me switch.
- No way of adding headings? * edit: sorry it's under styles.
- Clicking bold, italic etc should expand the selection to the word that the cursor is in.
- Setting formatting should restore the cursor to the editing area
- Clicking into a formatted area should toggle the buttons in the toolbar that apply
- image alignment a little clunky. Why not add a simple overlay for align centre|left|right on mouseover?
On the plus side image resizing is done well.
One thing that annoys me no end is that all editors I've ever used apply block level formatting (h1,2,3 etc) for an entire paragraph when only a sentence is selected. The most intuitive approach would be to break the sentence out of the paragraph and style only it. As a user I expect what I have highlighted to change not all of the surrounding text as well!
These things aren't easy to get right, especially cross browser. I recently put together an editor to exactly suit my needs (uses contenteditable instead of an iframe), but it's chrome, firefox and ie9+(? i think) only. Trying to get something usable across legacy browsers is ridiculously hard.
They were indeed hard to create and (at least then) relied on a detailed know of the browser and platform's characteristics.
But given the varying tasks which call for that kind of editor, what I'd really like to see is a small semi-standard tool or framework for the construction of such editors. As it is now, one must either use an existing tool having too many or too few features or go to the great lengths of modifying one.
This seems really promising at first. Would love to try it soon but it really needs a public repo. English documentation would be a great plus too! :)
Full disclosure, I'm the primary author.
They do sometimes produce really terrible HTML though, especially because people copy/paste from MS Word and it results in a bunch of garbage.
Markdown is not a standardize encoding. Many markdown editors don't support tables for instance.
Finally, as an editor, it lacks the easiness to add images and such. They need to be uploaded in a web server.
It thus has significant limitations before it can be considered a serious rich text alternative.
I do use it and I would love it had a better support because it is easy. What I like is that when writing we focus on the text, not the formating. Formatting is implicit.
Ran into a bug though, if you insert a table then return twice after it, all content below the table is removed..
some confusion on licenses - MIT is available but with a caveat and I don't think you can do that.
Edit: This goes to the lack of English docs, not to your misunderstanding I'm sure.
2. Because it doesn't use inline styles
3. Because it produces valid html5 markup
4. Because it's proven end tested in Basecamp Next
5. Because it's made by Xing
On the other hand, full-screen mode is really cool.
But, a problem: Tapping Bold with no text highlighted (the expectation is that whatever you type next is bold) not only doesn’t work, but steals focus and you lose your cursor
You should not consider this library production-ready!
Surely you kid, this is the nicest one I am to see come out yet. File a bug mate.
That was the primary reason that made me start http://hallojs.org
AGPL is a new license, and so there are few examples of how it affects things in practice. Many developers (especially ones building open source under less-strict license) prefer to keep their distance.
The goal of the AGPL was to keep people from modifying GPL programs that were essential on the backend, but then keep their modifications hidden. With the normal GPL, if you don't distribute a binary, you don't have to release your code. With the AGPL, the goal was to force people to also release backend code. But code licenses start to get very shaky when we aren't talking about binary-linked modules.
https://github.com/Pita/etherpad-lite
I have a fairly typical internet connection, and I can download 40 MEGABYTES in about 8 seconds.