LinkArticle solution for all editor include CKEditor - Joomla! Forum - community, help and support


i try linkarticle ckeditor , didn't work find error , send email creator.
here code.

//hold
$declaration =
"function jselectarticle(id, title, object) {
/*var content = tinymce.getcontent();

var articlehref = 'index.php?option=com_content&view=article&id='+id;
var articlelink = ' <a href=\"'+articlehref+'\"".$extra.">'+title+'</a> ';

jinserteditortext( articlelink, 'text' );
document.getelementbyid('sbox-window').close();*/
}
";

//new
$getcontent = $this->_subject->getcontent($name);

$declaration = "
function jselectarticle(id, title,editor) {
var content = $getcontent
jinserteditortext('<a href=\"index.php?option=com_content&view=article&id=' + id + '\"".$extra.">' + title + '</a>', 'text');
document.getelementbyid('sbox-window').close();
}
";






Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support