27 lines
2.0 KiB
Plaintext
27 lines
2.0 KiB
Plaintext
<%@ Control Language="C#" Inherits="BaseContentUserControls" %>
|
||
<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %>
|
||
|
||
<script runat="server">
|
||
protected override void Init()
|
||
{
|
||
PageTitle = PageCaption = "Плагины";
|
||
MetaKeyWords = "";
|
||
MetaDescription = "Статьи документации по плагинам.";
|
||
|
||
}
|
||
</script>
|
||
|
||
<div class="MainHelpCenter">
|
||
<h1 class="subHeaderFeaturesCaption Guides_Video_Captions">Структура плагина</h1>
|
||
<p>Каждый плагин для десктопной версии редакторов - это <b>zip-архив</b> директории с файлами (подробную информацию о добавлении плагинов в редакторы можно найти в разделе <a href="<%=VirtualPathUtility.ToAbsolute("~/api/plugins/installation.aspx")%>">"Установка плагинов в редакторах документов"</a>).</p>
|
||
|
||
<p>Папка должна содержать следующие файлы:</p>
|
||
|
||
<ul>
|
||
<li><b><a href="<%=VirtualPathUtility.ToAbsolute("~/api/plugins/structure/config.aspx")%>">config.json</a></b> - файл конфигурации плагина. Содержит основные данные, необходимые для регистрации плагина в редакторах.</li>
|
||
<li><b><a href="<%=VirtualPathUtility.ToAbsolute("~/api/plugins/structure/index.aspx")%>">index.html</a></b> - точка входа плагина. Подключает файлы <code>config.json</code> и <code>pluginBase.js</code> (базовый файл для работы с плагинами).</li>
|
||
<li><b><a href="<%=VirtualPathUtility.ToAbsolute("~/api/plugins/structure/plugincode.aspx")%>">pluginCode.js</a></b> - файл с кодом плагина. Содержит код JavaScript того плагина, который требуется подключить к редакторам.</li>
|
||
</ul>
|
||
|
||
</div>
|