Jump to content
  • entries
    96
  • comments
    103
  • views
    99,618

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


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recent Status Updates

    • Sledgstone

      My water heater had a seizure. Made some weird sounds and made my lights go crazy in the house earlier. Wtf I can't catch a break. I took a 2 hour lunch break and drained the tank out. Im hoping it removed sediment and it'll work ok. I'm testing it tonight. I'm waiting on a handyman guy to text me back about when he can look at it. Fml.
      · 7 replies
    • DeathscytheX

      Lets take a moment of appreciation for how utterly bad ass Maki's fight was on this weeks Fire Force. Same dude Arthur struggled with. That rig Vulcan set her up with is wicked. I'm really not ready for season 1 to end. Same with Dr. Stone. Both totally different series with outstanding world building. Its gonna feel a bit empty when they're done. MHA will probably start picking up steam soon though. Stars Align has been a nice surprise, and Azur Lane is totally my guilty pleasure this season. *ahem* But I digress.
      · 8 replies
    • Sledgstone

      My PC got screwed again. It wasn't just that memory stick. After I pulled a different memory stick, my hard crashes 90% stopped. I was still getting crashes about once or twice a day, but this time it was giving me blue screen errors instead of solid random crashes every 15 mins - 1 hour. All my drivers are up to date, but I kept getting driver_irql_not less or equal crashes with iastora.sys as the issue or it'd be a kmode_exception crash with no driver stated. Turns out iastora is the hard drive driver. I was worried my hard drive was failing. Doesn't look like it is. What I did was manually change the driver from the installed "Intel C220 series chipset SATA AHCI Controller" driver to the "Standard SATA AHCI Controller". As far as I can tell, that Intel driver was a couple years old and I'm guessing was not communicating correctly with my motherboard. Thats my guess at least. The motherboard has had multiple firmware updates over the year, including one earlier this year but that hard drive driver was still 2 years old. The new standard driver is recent as of this year. So far so good. Its been 3 days now and not a single crash of any kind. My PC seems stable now so I'm starting to reinstall my games and maybe I'll have the time to do that server transfer of AC since I won't have to worry about my PC crashing in the middle of a FTP connection.
      · 4 replies
    • Sledgstone

      I bought a new power tool set on saturday:
      https://slickdeals.net/f/13466749-ryobi-18-volt-one-lithium-ion-cordless-6-tool-combo-kit-with-2-1-5-ah-lithium-batteries-dual-chemistry-charger-and-bag-179?src=SiteSearchV2_SearchBarV2Algo1
      I checked that brickseek site and one of the home depots near me still had one in stock so I grabbed it quick. $70 off is a pretty damn good deal to me and comparable to the black friday deals last year. Most of last years BF deals for these tool sets were mostly larger combos with tools I didn't necessarily need and at a higher price, but still damn good deals. This set however has just about every tool I've been wanting except for an angle grinder. Its not brushless, but brushless tools would be more costly. That and all the brushless tool combos last black friday lacked multiple features the regular tools had like basic LED lights on the tools so you can see what you're doing.
      Now that I have tools I can do repair work on my deck. Which is how my weekend went. lol. I fixed a support piece with a new 1x6. I'll replace a couple deck boards this upcoming weekend and the deck should be good enough for winter.
      · 2 replies
    • DeathscytheX

      There is nothing like random spiders coming down from the AC vent over your bed. I swear this is happened 4 times that I know of, or thought I knew of in the past 4-5 years. I'd wake up in the middle of the night, and the small illumination from my room fan would let me see a damn spider hanging in front of my face. I'd swat at it, not feel anything and go back to sleep. At fist I chalked it up to being still half asleep and maybe I was just seeing things. Then one time I woke up with a somewhat swollen red patch inside my bicep that was warm to touch all day. Then two nights ago as I put my phone on my night stand with the screen still on I saw something floating above me and I swatted it with the bed comforter. Not wanting to be bitten again, I got up, shook the bed sheets out and upon not seeing anything I went back to sleep... Yesterday I found a dead quarter sized wolf spider in the middle of the floor. I looked up a wolf spider bite and it sure enough it seems that's what bit me months ago. 🙄 Its just weird they like that particular vent. They aren't dangerous, but the bite was pretty annoying for 24 hours. Seeing as my ceiling fan blades are pretty close to the vent, it amazes me they don't get blown sideways coming down like that. I wish they'd just crawl on the wall and go somewhere else than landing on me while I sleep. Winter can't come fast enough.
      · 1 reply
  • Topics

×
×
  • Create New...