XF 1.2 A New Editor and Much Much More

I've never hidden my frustrations with XF 1.1's editor (which is based on TinyMCE). In 1.2, we have entirely removed the existing editor and replaced it with a new one based on Redactor:
ss-2013-05-17_12-21-49.webp


So obviously this looks quite a bit different--and I know plenty of people didn't like the 1.1 editor look--but the functionality is there. So what advantages do we have? Well there are various ones:
  • Much lighter code and faster to load. Redactor depends on jQuery and benefits from that.
  • When pasting, most formatting is removed (though some is kept). However, if you're pasting from one XenForo editor to another (or within the same one), all formatting is maintained.
  • White space is maintained for code tags when pasting from Webkit. This was an annoyance for a number of people here, myself included. :)
  • The overlays are now consistent with overlays elsewhere in XF.
  • Generally, from my perspective, the code is much more adaptable to our needs.
  • A bunch of other things I'm going to detail below...
For the most part, the editor simply shouldn't get in your way so in a sense, you shouldn't actually see much different for the average post.

How about some other bigger changes?

Pasting images
If you use Chrome or Firefox and have an image in your clipboard, you can simply paste it into the editor. It will automatically be uploaded as an attachment if possible. If the upload is successful, this works exactly like uploading an image and then clicking the "full image" button.

Note that in Chrome, the image data must be in your clipboard (such as from pressing print screen). In Firefox, you can either have image data or you can copy a file that's an image and paste that.

Drag and drop uploading
Provided your browser supports it, you can now drag files into the editor to upload them:
ss-2013-05-17_12-37-47.webp


@User tagging
While not directly related to the editor change, this is probably the best time to mention it. You can use @Mike style syntax to tag users in a post:
ss-2013-05-17_12-39-42.webp

Tagged users will receive an alert when they're tagged.

You can obviously turn off tag alerts, but as an admin, you can also limit the maximum users that can be tagged per message as a permission. (So you could disable it for registered members and only allow premium members to tag, for example.)

Alternative smilie inserting approach
The smilie dropdown really didn't work well with a lot of smilies. Clicking the :) button will now do this:
ss-2013-05-17_12-42-10.webp

This is now making a call to get the smilies and lays them out with a template. This opens up the possibility for more organization options (though nothing has changed as of this message).

Auto save drafts
While you are typing a message, every X seconds (currently 60), a draft of your message will be saved. If you reload the page later, your message will be automatically re-shown. Drafts will be automatically pruned over time.
Each draft is associated with a particular piece of content, such as a thread, forum, or conversations. A draft reply that you start working on in thread 1 will not be shown to thread 2 and so forth.

Display if messages have been posted since you started your message
Tied into the auto-saving, when you're writing a reply to a thread, we will check to see if any new messages and display a note if there are. You can then display those new posts without reloading the page.




Oh yeah, one more thing on the editor, it's fully responsive:
ss-2013-05-17_12-49-20.webp

That should be a hint... :)



So, when are we going to see this all? Well, we're hoping to have 1.2 running here on XenForo.com in early June. The initial beta release will follow, based on how well the time on 1.2 goes. The final release of 1.2 would be wholly dependent on how the beta process goes.
 
They may have had time... the factor is normally money.:D
Windows XP is 12 years old
Internet Explorer 8 is 4 years old (1 year short of being 1/2 a decade)

If your company has not raised enough capital in 4 - 12 years to update your browser.... Your business model isn't working.
 
Windows XP is 12 years old
Internet Explorer 8 is 4 years old (1 year short of being 1/2 a decade)

If your company has not raised enough capital in 4 - 12 years to update your browser.... Your business model isn't working.

Nope. I'm sure they are not getting it wrong.

I'm almost sure the reason isn't because their business is failing or they're doing something wrong. But rather something more obvious, in that if you stuck a piece of coal up their backsides the pressure from within would turn it into a diamond because of their tight fisted nature and finding ways to save money at every turn.

I'm sure in some cases that might apply though.
 
Time IS money.... or at least that's what my bosses always told me. :ROFLMAO:

off topic....

I studied business and personally, philosophically, I never truly bought into (agree with) the concept of time being money. Mainly because I'm going to do with whatever I want with my time, regardless of how much or how little is required.
 
Nope. I'm sure they are not getting it wrong.

I'm almost sure the reason isn't because their business is failing or they're doing something wrong. But rather something more obvious, in that if you stuck a piece of coal up their backsides the pressure from within would turn it into a diamond because of their tight fisted nature and finding ways to save money at every turn.

I'm sure in some cases that might apply though.
I of all people know how to save money. My monthly and annual living expense is kept in check by me (about 990 a month). Its why I'm able to travel so often & see the world, while most people only dream of it.

But even I understand that some things need to be factored in as an acceptable cost. Keeping myself current and up to date is one of those factors.
 
The reason a lot of businesses are still on IE6 is not because of the browser itself. It is generally because they have these massive systems that depend on IE6, be it for ActiveX or for IE6 strangeness and replacing those systems is too expensive - bear in mind that some companies would have to manage not just updating their software, but key parts of their infrastructure and there's a lot of business risk attached to doing it. Businesses don't like risk - and if it isn't actually broken, why change it? XP still works for them, IE6 still works for them, to them upgrading is an unnecessary cost.

Also the reason for using bbcode is an interesting one... you'd be surprised actually. The best example I have incidentally is WordPress... that little platform that uses HTML primarily in its editor - and yet it has all kinds of shortcodes, which are basically bbcode.
 
The reason a lot of businesses are still on IE6 is not because of the browser itself. It is generally because they have these massive systems that depend on IE6, be it for ActiveX or for IE6 strangeness and replacing those systems is too expensive - bear in mind that some companies would have to manage not just updating their software, but key parts of their infrastructure and there's a lot of business risk attached to doing it. Businesses don't like risk - and if it isn't actually broken, why change it? XP still works for them, IE6 still works for them, to them upgrading is an unnecessary cost.

Exactly. Said far better than I managed :-)
 
The reason a lot of businesses are still on IE6 is not because of the browser itself. It is generally because they have these massive systems that depend on IE6, be it for ActiveX or for IE6 strangeness and replacing those systems is too expensive - bear in mind that some companies would have to manage not just updating their software, but key parts of their infrastructure and there's a lot of business risk attached to doing it. Businesses don't like risk - and if it isn't actually broken, why change it? XP still works for them, IE6 still works for them, to them upgrading is an unnecessary cost.

If your business depends on a plug-in for browser which is over 12 years old (released in 2001), your business model is flawed.

And for that business to depend on what has been called the most insecure browser by Microsoft, you're business model is flawed.

Interesting to point out, that Microsoft even told people to ditch Internet Explorer 6. They made a whole dedicated site, just to serve 1 single purpose ... To tell people to ditch IE6. http://www.ie6countdown.com/

^ Its not a matter of an opinion I'm stating here. These things are things you can look up.

Also the reason for using bbcode is an interesting one... you'd be surprised actually. The best example I have incidentally is WordPress... that little platform that uses HTML primarily in its editor - and yet it has all kinds of shortcodes, which are basically bbcode.
I agree on this.

Although.... We're getting off topic here now.... So I'll bow out now .....
 
It's not the browser per say, it's the software that is built on top of it that is the problem. In a large organisation making a wholesale change to a system that 12,000 people use all day every day isn't a small prospect. ;)
 
A business model is about making more money than they're spending. Not spending tens of thousands (or more) on an upgrade to equipment that continues to function adequately seems like a valid way to continue the business model. You're so good at saving money, I'm sure you don't spend out on a new computer every year when your current one continues to work...

Yes, I'm well aware that IE6 is an endangered species, and yes, I'd love to see it die. But there are reasons out there why it continues to survive, heck, one company I know still runs machines with Windows 95, but given that these are control units for mechanised drills and so on which start at $300,000 each, it's not like you can just replace them easily... but I'm sure you'll criticise their business model there too. While we're at it, how about my bank which still uses ATMs based on IBM OS/2 Warp 4?

Just because it's not supported and old does not mean it has to be just thrown out, contrary to your assertions.
 
Well, to get back on topic. I like the fact XF is trying to do bold things and at the same time attending to customer concerns. Changing the editor is by no means a simple feat and I applaud the effort. I can't wait to see it in action.:)

Scott
 
i don't know if this has been asked... One of the highlight of Redactor is the Amazon S3 support

Amazon S3 support
Want to store images, videos and files in Amazon S3 storage? No problem. Redactor now supports S3 upload right out-of-the-box. You’re going to love this feature!

Does this mean, XF editor will also have such features?
 
I doubt it. I'm pretty sure it routes uploads through the existing attachment system. The attachment system would need to be modified to work with S3.
 
I really don't like this editor, it is simple but not that great. I think CKEditor is better and has much more options and has been under development for 10 years. The reason I think Xenforo is using Redactor editor is because it is fee is not as expensive as the CKEditor

http://imperavi.com/redactor/download/
http://cksource.com/ckeditor/buy

Honestly, i really like CKeditor more and I personally don't like the dev cocky response when he is only releasing his editor new to public http://imperavi.com/blog/

We do not support charities, student projects and free community open-source movements. There's a great deal of similar thinking in a post by Jason Fried of 37signals; for student projects there are free options of CKEditor or TinyMCE: you wouldn't use expensive Photoshop to compose a poster for your garage sale, why then would you use professional WYSIWYG for your school project? For free community open-source projects — it was their developers' decision to invest their time to this hobby, so we won't commit to it. There are, however, really cool projects that are driven by passion of thousands of developers (Yii, for instance), who are able and willing to rise funds and purchase license, not relying on one's good will to donate. Here's how we keep our clients professional.

Also the editor has bugs in term of spacing when copy/pasting from other sites. I've test it in the past and never liked it.
 
I think they're using Redactor because it was suggested a handful of times and other software use CKEditor and it hasn't been particularly outstanding. Mike said he had experience working with Redactor and it was easy to write code for.

I think the developer's response was cocky, but if the editor works nicely.. oh well.
 
Coming from using IP.Board, who use CKEditor, I've got to say I'm quite happy that Xenforo aren't using it. It's had many bugs since it's been implemented and there's still a few that haven't been fixed.

I'll be interested to see how Redactor compares.
 
Coming from using IP.Board, who use CKEditor, I've got to say I'm quite happy that Xenforo aren't using it. It's had many bugs since it's been implemented and there's still a few that haven't been fixed.

I'll be interested to see how Redactor compares.

Me too. I dont like IPBs CKEditor either.
 
@KatieH - I think one of the biggest concerns is keeping XF "lightweight". CKE is a hog, unfortunately. That happens, when you trudge on with a project for 10 years and don't thin off the fat occasionally, although 4 did do some improvements in this direction. Redactor is very light weight. (comparing the files sizes)

And, I am sure Mike and Kier will do a good job at the implementation and they might even make you happy and possibly even surprised. I don't want to raise hopes too high, but these two gents have delivered a lot of good stuff over the years, which I've witnessed and awed at on occasion and I'd personally expect nothing less from them now.

Let me rephrase that and just say, I am sure they won't disappoint most of us XF customers.;)

Scott
 
Top Bottom