TinyMCE - Adding a <base> tag to the head of the editor document -


i have tinymce editor need add tag in doncument's head. have working adding

$(tinymce.activeeditor.getdoc()).children().find('head').append('<base href=\"theurl\">'); 

to init_instance_callback function. when inspect dom, see added properly. images add editor use new base information. issue existing items loaded editor not use "errored" out before base tag added.

any ideas how add tag before document loaded, or how reload document base tag in place?

thanks,

try use onbeforesetcontent event. way base-tag gets added before editor gets filled initial content. may want set global variable true if base-tag has been added in order check , add once , not on every onbeforesetcontent event.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -