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.
 
Will the autosave feature work in the event of a browser or computer crash? I'm just wondering if the user navigates back to the site if there is an alert that will tell them that they have an unfinished message? How would the person know that the message has actually been saved and that they can finish it?
 
How would the person know that the message has actually been saved and that they can finish it?
Just simply from the fact that if it wasn't finished then it definitely would be saved.

There shouldn't need to be any notification because you will know if you finished a post/thread/conversation message or not.

It sounds like the drafts are stored in a database table somewhere tied to a piece of content so my guess would be if it isn't included by default then an add-on dev could extend this so there's a page that can show you your unfinished posts.
 
I hope that we can easily remove undesired fonts, sizes and colors from the new editor.

Smilie organization options will also be critical for folks who have a lot of similies. Hopefully, we can more easily rearrange smilies in the admin control panel as well.

Looking forward to seeing this bad boy in action!
 
Just simply from the fact that if it wasn't finished then it definitely would be saved.

There shouldn't need to be any notification because you will know if you finished a post/thread/conversation message or not.

It sounds like the drafts are stored in a database table somewhere tied to a piece of content so my guess would be if it isn't included by default then an add-on dev could extend this so there's a page that can show you your unfinished posts.

What if your computer crashes, you reboot and you go back to the site (but aren't on the page you were last trying to write a post). Is there a little pop-up or alert to tell you that your message was saved and that you can finish it? "You have 1 unfinished post / thread"
 
I'm not sure, maybe Mike can answer.

I'd hazard a guess that there isn't on the presumption that you would know what you were doing before your computer crashed, so you would just go back there and see your saved post.
 
I'm not sure, maybe Mike can answer.

I'd hazard a guess that there isn't on the presumption that you would know what you were doing before your computer crashed, so you would just go back there and see your saved post.

If someone was starting a new thread, then presumably when they tried to start another new thread, the old thread would be there. Not sure if this has been considered, but I guess that's how it might work. "You have an unfinished thread, would you like to finish this thread or start a new one?"

If they were going to finish their old post, I guess they would have to navigate back to that thread and find it and the post would be there. Some sort of an alert would be useful, so the person doesn't have to search all over for the post they left off at. Maybe something in the profile or account area too?
 
Drafts are associated to particular content items, according to Mike's post.

So a thread, forum or conversation.

That says to me that if you are writing a new thread then that draft will be associated to that forum. So if you go to create a thread in that forum again, the draft will be there.

I agree it could be useful for the available drafts to be visible somewhere.
 
The drafts automatically show up where they're applicable.

There isn't a system to show all that are pending as it's not generally designed to be a long term thing - it's more to prevent accidents. There may be an add-on that does show a list in the future though.
 
That's probably the best and worst feature of Confluence. I am not a fan of Atlaissan products.
me neither, but they have sooooooooo many great ideas and futures and i really enjoy viewing their demo videos and blogs
(probably too many features, and that's IMO why people don't like their products)
 
me neither, but they have sooooooooo many great ideas and futures and i really enjoy viewing their demo videos and blogs
(probably too many features, and that's IMO why people don't like their products)

I'd prefer not to derail this thread anymore, but they make some things way too complicated at times and hard to get to.
 
Top Bottom