helpcenter/helpcenter.r7-office.ru/Web/Controls/Help/Desktop/Documents/Plugins/Structure.ascx

27 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ 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>