Hello all,
I know this is an old post, but as it's related, I didn't want to create a new topic.
I'm using Open Journal Systems (OJS 2.3.8.0).
I've been trying to configure TinyMCE to enable IFRAMEs for an OJS install as we probably will need to embed multiple media within the articles abstracts.
This is the code in
plugins/generic/tinymce/TinyMCEPlugin.inc.php- Code: Select all
$tinymceScript = '
<script language="javascript" type="text/javascript" src="'.$baseUrl.'/'.TINYMCE_JS_PATH.'/tiny_mce_gzip.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE_GZ.init({
relative_urls : "false",
plugins : "paste,fullscreen,jbimages",
extended_valid_elements : "iframe[*]",
themes : "advanced",
languages : "' . join(',', $localeList) . '",
disk_cache : true
});
</script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
entity_encoding : "raw",
plugins : "paste,fullscreen,jbimages",
extended_valid_elements : "iframe[*]",
mode : "exact",
language : "' . String::substr(AppLocale::getLocale(), 0, 2) . '",
elements : "' . $enableFields . '",
relative_urls : false,
forced_root_block : false,
paste_auto_cleanup_on_paste : true,
apply_source_formatting : false,
theme : "advanced",
theme_advanced_buttons1 : "cut,copy,paste,|,bold,italic,underline,bullist,numlist,|,link,unlink,help,code,fullscreen,jbimages,iframe",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : ""
});
</script>';
I deleted the .gz file from the respective lib folder and refreshed, but nothing happens....
I also added the IFRAME tag in config.inc.php
Any ideas?
[UPDATE]
There must be something being done somewhere else, as the IFRAME tag is added AND saved in the abstract field, but it doesn't get displayed at all.
_______________________________
Ramón Martins Sodoma da Fonseca
Analista em C&T
Coordenação de Tecnologias de Informação
Instituto Brasileiro de Informação em Ciência e Tecnologia - IBICT
Ministério da Ciência e Tecnologia - MCT