Source for file article.php
Documentation is available at article.php
* @subpackage Editors-xtd.article
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @subpackage Editors-xtd.article
* Load the language file on instantiation.
* @param string $name The name of the button to add
* @return array A four element array of (article_id, article_title, category_id, object)
* Javascript to insert the link
* View element calls jSelectArticle when an article is clicked
* jSelectArticle creates the link tag, sends it to the editor,
* and closes the select frame.
function jSelectArticle(id, title, catid, object, link, lang)
var hreflang = ' hreflang = \"' + lang + '\"';
var tag = '<a' + hreflang + ' href=\"' + link + '\">' + title + '</a>';
jInsertEditorText(tag, '" .
$name .
"');
$doc->addScriptDeclaration($js);
* Use the built-in element view to select the article.
* Currently uses blank class.
$link =
'index.php?option=com_content&view=articles&layout=modal&tmpl=component&' .
JSession::getFormToken() .
'=1';
$button->text =
JText::_('PLG_ARTICLE_BUTTON_ARTICLE');
$button->name =
'file-add';
$button->options =
"{handler: 'iframe', size: {x: 800, y: 500}}";
Documentation generated on Tue, 19 Nov 2013 14:53:56 +0100 by phpDocumentor 1.4.3