Comments on: The contenteditable attribute https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Tim H https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-2130930 Fri, 01 Jul 2016 15:47:51 +0000 http://html5doctor.com/?p=3796#comment-2130930 I’ve been unsuccessful trying to use this with Salesforce. That is, with APEX (ex: apex.inputField). I am unable to save the data the user inputted. Any ideas or help is appreciated!

]]>
By: Patanjali https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-1733112 Mon, 16 Mar 2015 02:42:36 +0000 http://html5doctor.com/?p=3796#comment-1733112 Sorry, I forgot to escape the non-breaking space above:

Further testing after my comment above, a final   IS recognised correctly.

That is really not that helpful, unless one wants to always replace a final space with an  ,whether entered while editing or retrieved, then restore it as a normal space when saving.

May be worth it though, if it allows in-place editing, which will obviously require a lot of javascript usage to properly implement anyway.

]]>
By: Patanjali https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-1733057 Mon, 16 Mar 2015 02:23:22 +0000 http://html5doctor.com/?p=3796#comment-1733057 Note that IE11 (and possibly earlier versions) doesn’t show a final space.

Specifically, the last space is shown outside the containing element, which may give an editor the sense that it isn’t there, as it will not take on the background-color of the containing element.

The giveaway is that pressing the End key will put the cursor after the space, outside the element, but clearly ‘invisible’ if the element isn’t the focus.

Unless there is a way to give a background colour to the text itself, as opposed to its containing element, contenteditable is likely to be a frustrating exercise for those using IE11.

]]>
By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-1376192 Fri, 02 Jan 2015 09:45:04 +0000 http://html5doctor.com/?p=3796#comment-1376192 fixed now, thanks for pointing out.

]]>
By: Lonesta Jack https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-1372457 Thu, 01 Jan 2015 18:09:36 +0000 http://html5doctor.com/?p=3796#comment-1372457 A simple example of this can be seen on JS Bin: contenteditable saving to Ajax
— Remy Sharp

Link doesn’t work

]]>
By: Howard Cary Morris https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-1241720 Mon, 15 Dec 2014 03:43:27 +0000 http://html5doctor.com/?p=3796#comment-1241720 Some browsers work funny, seeing 2 strange results:
1) When I Print Preview – not showing changes I made properly
— Safari
2) Copy paste seems to copy font settings as well overriding CSS
— Safari
— Opera
— Chrome

]]>
By: Kevin Cassidy https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-403759 Sun, 21 Sep 2014 02:03:36 +0000 http://html5doctor.com/?p=3796#comment-403759 This is nice:

data:text/html,Hello World head,title{display: block;}

]]>
By: Arun https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-48685 Fri, 14 Mar 2014 05:16:25 +0000 http://html5doctor.com/?p=3796#comment-48685 It is still not working in IE 11. There is no problem with “contenteditable” attribute, that works fine on elements, but it seems it does not recognize “data URL”.

Any suggestions please.

]]>
By: webguy https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-44817 Thu, 23 Jan 2014 14:01:46 +0000 http://html5doctor.com/?p=3796#comment-44817 There is a lot of confusion about this attribute, in-fact this attribute is very old, its part of the HTML 4 specification for more than a decade, its accessible also in the JavaScript API (possibly since even 1.2) since 2000 or even earlier, which is when I first used it, so its possibly pre 2000. What has changed is that it was only possible to use it on certain elements, the original being the iframe, then later support was added for other markup elements, but from what I can tell HTML5 adds the ability to use this attribute on many more elements than before so its more prominent.

]]>
By: Mufaddal Shabbir https://stevefaulkner.github.io/html5doctored/the-contenteditable-attribute/#comment-42259 Wed, 04 Dec 2013 08:33:37 +0000 http://html5doctor.com/?p=3796#comment-42259 I just got a requirement, when someone type in element, element increases width according to text, for this requirement its perfect match. Also its easy to use.

]]>