javascript - custom tag ckeditor error -


just started using ckeditor , got little problem. on button click outside editor tag generated , inserted ckeditor using following code:

ckeditor.instances['pagecontent'].inserthtml('<cke:video id="video-' + + '" class="video" src="' + $(this).siblings('.medianame').text() + '">video</cke:video>'); 

the above works fine. tag inserted editor , shows text "video" in wysiwyg view. when click source shows tag code shown below.

<video class="video" id="video-29" src="/link/to/file.flv">video</video> 

so well. when click on wysiwyg view "video" text placeholder thing not there (yet code still in source view.)

then when start click around in editor adding more content console throws error:

permission denied access property 'nodetype' 

i have no idea why doing happens when add custom video tag mix. when googling im not finding substantial either :(

really hope can help. have absolutely no idea why doing this.

thanks reading

okay im not sure think bug. dont think ckeditor knows how interpret <video> tag.

my work around insert image video details in , replacement client side changing <img> tag <video>.

its not ideal works :)

hope helps else happens come across same issue.


Comments