1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Editor

Открытые члены

 __construct ($params)
 setBlockList (array $blocks)
 setToolList (array $tools)
 getDefaultBlockList ()
 getDefaultToolList ()
 getUI ($id, array $values)
 showEditor ()
 show ()
 setComponentFilter (array $componentFilter=null)

Открытые статические члены

static createInstance ($params)
static isAvailableRussian ()
static isNotAvailableInRussian ()
static getHtmlForEditor ($html, $charset=null)
static replaceCharset ($html, $charset='#CHARSET#', $add=false)
static fillTemplateBySliceContent ($template, $string, $encoding=null)
static fillDocumentBySliceContent (Document $document, $string, $encoding=null)
static isContentSupported ($content)
static isHtmlDocument ($content)

Поля данных

CONST SLICE_SECTION_ID = 'BX_BLOCK_EDITOR_EDITABLE_SECTION'
CONST BLOCK_PLACE_ATTR = 'data-bx-block-editor-place'
CONST BLOCK_PHP_ATTR = 'data-bx-editor-php-slice'
CONST STYLIST_TAG_ATTR = 'data-bx-stylist-container'
CONST BLOCK_PLACE_ATTR_DEF_VALUE = 'body'
CONST BLOCK_COUNT_PER_PAGE = 14
 $id
 $tools = array()
 $blocks = array()
 $componentsAsBlocks = array()
 $previewModes = array()
 $tabs = array()
 $uiPatterns

Защищенные члены

 getComponentList ()
 getComponentTree ()
 getComponentListPlain ($list)

Защищенные данные

 $site
 $url
 $previewUrl
 $saveFileUrl
 $templateType
 $templateId
 $charset
 $isTemplateMode
 $isUserHavePhpAccess
 $useLightTextEditor
 $ownResultId
 $componentFilter = array()

Подробное описание

См. определение в файле editor.php строка 19

Конструктор(ы)

◆ __construct()

__construct ( $params)

Create editor object.

Аргументы
array$params

См. определение в файле editor.php строка 228

Методы

◆ createInstance()

createInstance ( $params)
static

Return editor object

Аргументы
array$params
Возвращает
Editor

См. определение в файле editor.php строка 218

◆ fillDocumentBySliceContent()

fillDocumentBySliceContent ( Document $document,
$string,
$encoding = null )
static

Fill template(as a DOM Document) by content.

Аргументы
Document$documentDocument.
string$stringContent string.
string$encoding
Возвращает
boolean
См. также
\Bitrix\Fileman\Block\Content\Engine::fillHtmlTemplate

См. определение в файле editor.php строка 1186

◆ fillTemplateBySliceContent()

fillTemplateBySliceContent ( $template,
$string,
$encoding = null )
static

Fill template(as a HTML) by slice content. Result is string.

Аргументы
string$template
string$stringContent string.
string$encoding
Возвращает
string
См. также
\Bitrix\Fileman\Block\Content\Engine::fillHtmlTemplate

См. определение в файле editor.php строка 1171

◆ getComponentList()

getComponentList ( )
protected

См. определение в файле editor.php строка 1246

◆ getComponentListPlain()

getComponentListPlain ( $list)
protected

См. определение в файле editor.php строка 1258

◆ getComponentTree()

getComponentTree ( )
protected

См. определение в файле editor.php строка 1251

◆ getDefaultBlockList()

getDefaultBlockList ( )

Return list of default blocks

Возвращает
array

См. определение в файле editor.php строка 338

◆ getDefaultToolList()

getDefaultToolList ( )

Return list of default tools, uses for block changing

Возвращает
array

См. определение в файле editor.php строка 382

◆ getHtmlForEditor()

getHtmlForEditor ( $html,
$charset = null )
static

Return received string, that php changed in special format for block editor.

Аргументы
string$html
string$charset
Возвращает
string $html

См. определение в файле editor.php строка 1103

◆ getUI()

getUI ( $id,
array $values )

Return html of interface part.

Аргументы
string$id
array$values
Возвращает
string

См. определение в файле editor.php строка 907

◆ isAvailableRussian()

isAvailableRussian ( )
static

Return true if can use Russian services.

Возвращает
bool

См. определение в файле editor.php строка 355

◆ isContentSupported()

isContentSupported ( $content)
static

Check string for the presence of tag attributes that indicates supporting of block editor

Аргументы
string$content
Возвращает
boolean

См. определение в файле editor.php строка 1197

◆ isHtmlDocument()

isHtmlDocument ( $content)
static

Check string for the presence of html

Аргументы
string$content
Возвращает
bool

См. определение в файле editor.php строка 1215

◆ isNotAvailableInRussian()

isNotAvailableInRussian ( )
static

См. определение в файле editor.php строка 365

◆ replaceCharset()

replaceCharset ( $html,
$charset = '#CHARSET#',
$add = false )
static

Replace charset in HTML string.

Аргументы
string$html
string$charset
bool$add
Возвращает
string $html

См. определение в файле editor.php строка 1136

◆ setBlockList()

setBlockList ( array $blocks)

Set custom blocks

Аргументы
array$blocks
Возвращает
void

См. определение в файле editor.php строка 266

◆ setComponentFilter()

setComponentFilter ( array $componentFilter = null)

Set components filter

Аргументы
array$componentFilter
Возвращает
void

См. определение в файле editor.php строка 1241

◆ setToolList()

setToolList ( array $tools)

Set custom tools

Аргументы
array$tools
Возвращает
void

См. определение в файле editor.php строка 328

◆ show()

show ( )

Return html for showing editor and include all resources

Возвращает
string

См. определение в файле editor.php строка 1037

◆ showEditor()

showEditor ( )

Return html of editor interface without resources.

Возвращает
string

См. определение в файле editor.php строка 926

Поля

◆ $blocks

$blocks = array()

См. определение в файле editor.php строка 49

◆ $charset

$charset
protected

См. определение в файле editor.php строка 35

◆ $componentFilter

$componentFilter = array()
protected

См. определение в файле editor.php строка 51

◆ $componentsAsBlocks

$componentsAsBlocks = array()

См. определение в файле editor.php строка 53

◆ $id

$id

См. определение в файле editor.php строка 28

◆ $isTemplateMode

$isTemplateMode
protected

См. определение в файле editor.php строка 36

◆ $isUserHavePhpAccess

$isUserHavePhpAccess
protected

См. определение в файле editor.php строка 37

◆ $ownResultId

$ownResultId
protected

См. определение в файле editor.php строка 39

◆ $previewModes

$previewModes = array()

См. определение в файле editor.php строка 55

◆ $previewUrl

$previewUrl
protected

См. определение в файле editor.php строка 31

◆ $saveFileUrl

$saveFileUrl
protected

См. определение в файле editor.php строка 32

◆ $site

$site
protected

См. определение в файле editor.php строка 29

◆ $tabs

$tabs = array()

См. определение в файле editor.php строка 57

◆ $templateId

$templateId
protected

См. определение в файле editor.php строка 34

◆ $templateType

$templateType
protected

См. определение в файле editor.php строка 33

◆ $tools

$tools = array()

См. определение в файле editor.php строка 44

◆ $uiPatterns

$uiPatterns

См. определение в файле editor.php строка 59

◆ $url

$url
protected

См. определение в файле editor.php строка 30

◆ $useLightTextEditor

$useLightTextEditor
protected

См. определение в файле editor.php строка 38

◆ BLOCK_COUNT_PER_PAGE

CONST BLOCK_COUNT_PER_PAGE = 14

См. определение в файле editor.php строка 26

◆ BLOCK_PHP_ATTR

CONST BLOCK_PHP_ATTR = 'data-bx-editor-php-slice'

См. определение в файле editor.php строка 23

◆ BLOCK_PLACE_ATTR

CONST BLOCK_PLACE_ATTR = 'data-bx-block-editor-place'

См. определение в файле editor.php строка 22

◆ BLOCK_PLACE_ATTR_DEF_VALUE

CONST BLOCK_PLACE_ATTR_DEF_VALUE = 'body'

См. определение в файле editor.php строка 25

◆ SLICE_SECTION_ID

CONST SLICE_SECTION_ID = 'BX_BLOCK_EDITOR_EDITABLE_SECTION'

См. определение в файле editor.php строка 21

◆ STYLIST_TAG_ATTR

CONST STYLIST_TAG_ATTR = 'data-bx-stylist-container'

См. определение в файле editor.php строка 24


Объявления и описания членов класса находятся в файле: