in Telerik Kendo Editor 2017 version, if insertHtml is used after the new line, all <br /> tags are deleted. Does anyone have a workaround on th ...
in Telerik Kendo Editor 2017 version, if insertHtml is used after the new line, all <br /> tags are deleted. Does anyone have a workaround on th ...
When a checkbox is checked I insert a new a tag to display what is selected. I add an onclick event to that a tag but when I cick on it for some reaso ...
I'm trying to insert the following 'block' of HTML using Element.insertAdjacentHTML() However, I'm not sure it is possible to add divs with classes ...
I am trying to build a random teams creator with jQuery. I've finished working on the functions, it creates random teams, but now I'm trying to get th ...
I have an example.html file: And a main.js file: What I currently get in log: What I expect: And there should be a more elegant way to ins ...
I'm currently working on a MailMerge Word-doc. It is partially filled with strings, and partially with html (which can contain tables, pictures, bold/ ...
I'm learning JS and how to add array elements. I want to have the info submitted in the form as a new array element and have it displayed it below. Ca ...
I'm following w3school beginner tutorial for JS. There's something I don't understand from code below: <!DOCTYPE html> <html> & ...
I have contenteditable div, and span with text inside. I need insert in place of caret closing and opening span tags. Like: I tried to make it ...
jQuery toggle doesn't work on the elements inserted in the div through execComand insertHTML Here's demo ...
This question is probably similar to this one. I'm using bootstrap-wysiwyg and I want to insert some html to #editor div. Html I want to insert shoul ...
My task is to insert an empty span node within a contentEditable div at current caret position. The following gives me no problems on Firefox 22.0: ...
I have such difficulties to succeed in placing an html element I am drag/dropping in my Ckeditor. So far, I have just been able to place it at the ver ...
I am having trouble getting this to work. I am trying to find a div inside of an iframe (on the same server) and then inject some html in there. A ...
The above code always throws error when I tried to insert the HTML content into the editable area in FireFox but it works fine in chrome. My FF ver ...
In a contenteditable div, I am attempting to use insertHTML to insert a special <div> and/or <span>. For whatever reason, this appears to ...
When using methods of selecting text and restoring selected text in a page, I have found that running execCommand('insertHTML... inbetween causes the ...