Can someone tell me why the output of the following code is 'text' when i think it should be 'radio'.
Thanks
Thanks
editor = this.getParentEditor();
element = editor.document.createElement( 'input' );
element.setAttribute( 'type', 'radio' ); // set type as radio
editor.insertElement( element );
var y = document.getElementsByTagName('input');
alert("y[0] : " + y[0].getAttribute('type')); // the output i get here is = 'y[0] : text'
Re: editor insert element
Re: editor insert element
Ok so:
editor = this.getParentEditor();
returns the editor instance that opened the dialog..So how do i access the elements contained within this returned editor instance? Can you explain please?
Thanks
Re: editor insert element
Re: editor insert element
http://stackoverflow.com/questions/2178449/ckeditor-scrollintoview-to-a-div-element-within-the-editor