I fixed this by myself, but thx for considering this.
TinyMCE has got a function that imports an external javascript-file that is filled with links. I create this javascript-file dynamically by looping through all articles that are published. Put this into your administrator/index.php at about line 50 (after the importPlugin('system'):
Code:
$txtFileName = "link_list.js";
$txtFile = fopen($txtFileName, 'w') or die("can't open file");
$result_mce = mysql_query("select id, title from jos_content where state=1 order by title");
$num_rows = mysql_num_rows($result_mce);
fwrite ($txtFile, "var tinyMCELinkList = new Array(");
if ($num_rows>0)
{
$cntr = 0;
while ($row = mysql_fetch_array($result_mce))
{
$cntr++;
fwrite($txtFile, "\n[\"" . $row['title'] . "\", \"index.php?option=com_content&view=article&id=" . $row['id'] . "\"]");
if ($cntr<$num_rows)
fwrite ($txtFile, ", ");
}
}
fwrite ($txtFile, ");");
And add
Code:
external_link_list_url : "link_list.js",
into the plugins/tinymce/index.php-file that configures the editor itself.
Let me know if this helped out at least a bit...
/CChristoph