The forum operates in read-only mode. Please head to StackOverflow for support.
FCK.CreateLink("mylink");
var attributes={href:'mylink'}; var style = new CKEDITOR.style( { element : 'a', attributes : attributes } ); style.type = CKEDITOR.STYLE_INLINE; style.apply( editor.document );
alfonsoml wrote:You should be able to do it with something like this: var attributes={href:'mylink'}; var style = new CKEDITOR.style( { element : 'a', attributes : attributes } ); style.type = CKEDITOR.STYLE_INLINE; style.apply( editor.document );
Any idea why this wouldn't be working in IE?
The error I am getting is:
Error: Unable to get value of the property 'createBookmarks': object is null or undefined
I am using version 3.6.5.
Thanks for any help.
Re: How to create a link in CKEDITOR via API
var attributes={href:'mylink'}; var style = new CKEDITOR.style( { element : 'a', attributes : attributes } ); style.type = CKEDITOR.STYLE_INLINE; style.apply( editor.document );Re: How to create a link in CKEDITOR via API
Thanks. That worked fine!!!
Any idea why this wouldn't be
Any idea why this wouldn't be working in IE?
The error I am getting is:
Error: Unable to get value of the property 'createBookmarks': object is null or undefined
I am using version 3.6.5.
Thanks for any help.