• entries
    96
  • comments
    103
  • views
    71,082

Invision Power 4.0 new editor features

The improvements they are making to IPB look really great. Some of the highlights for me:

http://community.invisionpower.com/blog/1174/entry-9537-ips-40-editor-part-1-content/

Quote

Currently URLs which gets picked up for media embedding and the output they produce are managed in the Admin CP. The idea was that this would allow admins to add support for additional services, however, it has caused some problems when for example, YouTube has added new URL formats or changed their embed code and they don't work on most communities until we release an update to change the default record for YouTube.

oEmbed is an API which allows you to make a call to the provider giving them the URL and they respond with the best embed code to use, if that URL can be embedded. In 4.0, if a URL for YouTube, Flickr, Vimeo, College Humor or Hulu is inserted, we make a call to their oEmbed provider to obtain the embed code, so it's always up to date.

Embeds will always work. Now that is a huge difference.

http://community.invisionpower.com/blog/1174/entry-9538-ips-40-editor-part-2-uploads/

Quote

The upload panel here is based on HTML5 which supports drag and drop uploading, if your browser doesn't support this, it will use Flash, Silverlight or Google Gears if you have any of those installed, and if not it will fallback to a HTML4 & JavaScript implementation (none of these support drag and drop, but instead you click the "Choose Files" button just as you do now - the label in the box will change to reflect this).

Drag and drop images right into the editor. I've been waiting for this feature. No more having to click attach and then navigate to the right folder where your image is.. just drag it right into the editor. :tup:

http://community.invisionpower.com/blog/1174/entry-9539-ips-40-editor-part-3-customisation-and-bbcode/

Quote

BBCode

Though no features in IPS4 insert BBCode-style tags into the editor (like is currently done for attachments, etc.) users can still type BBCode into the editor and it will work fine.

We've rewritten how BBCode is parsed to be much more secure and reliable and produce more standards-compliant HTML (for those who are interested, it parses the post content into a DOM Document and examines only the text nodes for BBCode tags, then either splits the nodes surrounding it and inserts one for block-level elements, or wraps all subsequent text nodes in the appropriate formatting element until the end BBCode is found).

The benefit to this is that there now no longer needs to be a "BBCode mode" - you can type BBCode straight into the editor, even complicated stuff like lists spanning multiple lines, and it comes out looking great.

The downside to this approach is that custom BBCodes can no longer be added through the Admin CP. However, as mentioned above, we now have the ability to add custom buttons to the editor which work in a much more intuitive way, and can do everything that custom BBCodes could and more. For those who really want to be able to add the ability for custom BBCode, we've isolated the method that returns the supported BBCode (and information needed to parse them) into a specific method so that custom BBCode can be added with a very simple hook specific to that purpose.

This is a big change and I hope they pull it off correctly. All our custom bbcodes will be negated. But the only custom bbcode we actually use is the spoiler tag, which will now be a default feature. All other custom bbcodes will now have to be created as CKEditor plugins.. but there are already a lot of ckeditor plugins available. So I could technically add a variety of new editor features.

http://community.invisionpower.com/topic/388306-ips-40-editor-part-4-special-features/

Quote

@mentions

@mentions are a common feature on social media sites like Twitter and Facebook. If you type an @ symbol and then start typing the name of a friend, an autocomplete menu shows so you can quickly then click on the user and they'll receive a notification that they've been mentioned. In 4.0 you can do exactly this to mention any user.

Very very nice. I like this.

Quote

Automatic Saving

Currently, when you're typing a post, every 2 minutes the content of the post is saved, so that if you accidentally navigate away from the page, your post content can be recovered. The content is saved by making an AJAX request.

In 4.0, we've rewritten this to use HTML5 web storage. This unloads this work to the browser, meaning no call needs to be made to the server. Because this is much more efficient, the save can be done much more frequently (every few seconds). This makes the autosave feature much more useful.

In addition, we've expanded the feature to support attachments. So if you've uploaded files, these too will be automatically recovered. Essentially if you're in the middle of typing a post and you refresh the page, everything will reappear exactly as you left it.

Good! No more having to click the load saved content option. Simplifying this will make the auto save much better.

Oh! and the editor will now be fully skin-able! The editor won't have to be glaring white on a dark theme anymore.

Also, the current skins that we use are going to be upgraded for IPB 4.0. We won't have to change the entire look of the site. :D




0 Comments


There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now


  • Recent Status Updates

    • Sledgstone

      Even in the last couple chapters of Fairy Tail, people that just died are brought back to life again.. At least a main bad guy is getting a proper ending now with one last big fight. Only 5 chapters left. Knowing how this manga is going, I'm guessing everyone will win with the power of friendship, or the author will be the ultimate troll and have the bad guy win and kill everyone. lmao. If he did that it would piss off everyone. I kind of hope it happens. I'm rooting for evil to win.
      · 1 reply
    • DeathscytheX

      wtf... Its 6v1 on WvW this week... both of our opponents are triple link servers. How is that even fair? We're getting destroyed in skirmishes because they K-train the whole map. They can't fight worth anything because were were farming them hard. But every time we dug out of last place we were instantly back in it within seconds of taking a keep or tower. They probably have like 3 commanders from each server zerging around the map capping stuff. How did Tarnish Coast get so bad that it needs 2 servers linked to it? Feels like not too long ago it was the weekly battle of JQ/BG/TC.
      · 2 replies
    • DeathscytheX

      Well I guess I put off buying a video card for too long. All the prices have skyrocketed by 50% or higher because of some bullshit ethereum mining thing. I'm def not paying these prices. I was planning on doing it next month when I financially had a chance to do so. I guess I'll have to hope my video card last a bit longer.
       
      · 5 replies
    • DeathscytheX

      The older I get, the more I dislike the general public. I was never Mr. Popular in school because I kept to myself and felt that the upper echelon of the social order was so trivial. I can befriend just about anyone of any type of values/background. But overall my circle of friends is pretty small, and always has been.

      I say all that to say this... holy shit why are people so fucking stupid on the internet? I'm pretty new to this whole reddit/facebook groups thing. I remember running around anime forums as a 14-15 year old shooting off at the mouth like I was hot shit... but these are grown ass adults that don't have a fucking clue what they are talking about, nor do they want to learn.
      I see all these morons on the GW2 facebook group asking dumbshit questions you can easily look up yourself on wiki or youtube... The GW2 community has the best community of YT guide makers of any game... quite literally there are the most pointless guides for even the biggest imbeciles.  Taking 5 steps in a straight line from a waypoint to get to a POI? You better believe there is a YT video on how to do it! Just type in the name of the POI and at least 5-6 20 sec-1min videos will pop up. You could have tabbed out of GW2, or pulled out your phone and looked that bullshit up and got it done w/o wasting your time posting a question in a facebook group and waiting for someone to respond. I mean what the actual fuck? Then they get butthurt when someone posts the link to the wiki, and people actually coddle this fool like we shouldn't tell him to try harder to help himself? I almost left the group because of that because it was the second time in two days I saw it. Kumbaya shit pisses me off, and as a society its lead to the everything is offensive/racist/bigoted/cruel. Sometimes people have to feel like people think they're stupid to better themselves. Its called learning the hard way, and I've done a lot of it myself.
      Then you have assholes telling you about the class you main, and they have no fucking clue how the class works.... because they don't even play it. They main another class. Its obvious by what they're spewing out, by leaving out various aspects of the class while giving out vague descriptions... then a lot of times saying something that's completely false.
      But this is just a side note really, what set me off on this rant today is another facebook group. I'm a EDC nut. I own multiple guns, pocket knives, and flashlights. I recently got into a group about a particular brand of knife I enjoy. Overall its a great group that gives me good ideas about future purchases I might make. I recently ordered a knife that is an upgraded version exclusive from a certain knife retailer. It has a high tier quality blade steel, making the knife double the cost of the standard version. Even then at $80, this steel is normally only found on pocket knives that are $220-400. Its one hell of a deal. So this new guy that joined the group asks in a comment reply why would anyone pay double the price for this knife when he got it for way less. I explained to him what the deal was, because that's what the group is for... sharing knowledge and opinions. He never responded so I figured he understood and moved on.... then later down the comments I see him ask the question again... Another member tells him about the steel, and I follow up explaining that its an exclusive version of the knife only sold by that particular retailer, and I even go into why that steel is special and its characteristics. Once again no acknowledgement. He later makes his own post, posting the basic version of this knife that he owns, and someone asks him what version it is, and he states he just found out that there are more than one version of his knife and asks AGAIN why is there a one doubled in price.... this all took place in the span of 17 hours. I mean did you not fucking read mine and other peoples explanation? You read it enough to know there was more than one version! Holy shit.... Why are you so fucking ignorant? Is your mental retention that bad? How did you even manage make it back to the facebook group two days in a row?
      I'm not really raging, even though it sounds like it. It just bothers me that people act this helpless. The internet has made people even more lazy despite the fact that there is a wealth of knowledge to be had. I've learned a shit ton using it, whether it be about science, history, or my very own hobbies. I mean how do these people even pay their internet bill? Did they post on their ISP's forum to ask how to do it? Google is a powerful tool to find quick answers to everything. It requires way less clicks. Use groups and reddit for opinion discussion... not for basic questions that you need to find on your own. You just look like someone that could drown in the shower.
      · 2 replies
    • Sledgstone

      I wish amazon would indicate if something is being shipped from out of country. The last 2 items I've purchased were both prime eligible and both gave the impression there would be 2 day shipping, until I get to the checkout and 'free 2 day shipping' has a delivery date of 1 week later. Still no indication as to why until I get the UPS tracking number and find out the item is being shipped from Canada. I haven't had anything from amazon actually arrive in 2 days in over 8 months.
      · 11 replies
  • Topics