baserCMS クラスリファレンス

BcCkeditorHelper extends Helper
in package
Uses BcEventDispatcherTrait

Class BcCkeditorHelper

Table of Contents

Properties

$BcAdminForm  : BcAdminFormHelper
$BcHtml  : BcHtmlHelper
$helpers  : array<string|int, mixed>
ヘルパー
$style  : array<string|int, mixed>
初期設定スタイル StyleSet 名 basercms 翻訳がある為、コンストラクタで初期化
$toolbars  : array<string|int, mixed>
ツールバー
$Url  : UrlHelper
$_script  : bool
スクリプト 既にjavascriptが読み込まれている場合はfalse
$_View  : View
View

Methods

createDomId()  : string
フィールド名から Dom ID を生成する
dispatchLayerEvent()  : bool|Event
イベントを発火
editor()  : string
CKEditorのテキストエリアを出力する
getThemeEditorCsses()  : array<string|int, mixed>
エディタCSS設定
initialize()  : void
initialize
setDraft()  : array<string|int, mixed>
下書きの設定
setEditorToolbar()  : mixed
ツールバーの設定
build()  : string
CKEditor のスクリプトを構築する 【ボタン一覧】 Source - ソース Save - 保存 NewPage - 新しいページ Preview - プレビュー Templates - テンプレート Cut - 切り取り Copy - コピー Paste - 貼り付け PasteText - プレーンテキスト貼り付け PasteFromWord - ワードから貼り付け Print - 印刷 SpellChecker - スペルチェック Scayt - スペルチェック設定 Undo - 元に戻す Redo - やり直し Find - 検索 Replace - 置き換え SelectAll - すべて選択 RemoveFormat - フォーマット削除 Form - フォーム Checkbox - チェックボックス Radio - ラジオボタン TextField - 1行テキスト Textarea - テキストエリア Select - 選択フィールド Button - ボタン ImageButton - 画像ボタン HiddenField - 不可視フィールド Bold - 太字 Italic - 斜体 Underline - 下線 Strike - 打ち消し線 Subscript - 添え字 Superscript - 上付き文字 NumberedList - 段落番号 BulletedList - 箇条書き Outdent - インデント解除 Indent - インデント Blockquote - ブロック引用 JustifyLeft - 左揃え JustifyCenter - 中央揃え JustifyRight - 右揃え JustifyBlock - 両端揃え Link - リンク挿入/編集 Unlink - リンク解除 Anchor - アンカー挿入/編集 Image - イメージ Flash - FLASH Table - テーブル HorizontalRule - 横罫線 Smiley - 絵文字 SpecialChar - 特殊文字 PageBreak - 改ページ挿入 Styles - スタイル Format - フォーマット Font - フォント FontSize - フォントサイズ TextColor - テキスト色 BGColor - 背景色 Maximize - 最大化 ShowBlocks - ブロック表示 About - CKEditorバージョン情報 Publish - 本稿に切り替え Draft - 草稿に切り替え CopyPublish - 本稿を草稿にコピー CopyDraft - 草稿を本稿にコピー

Properties

$helpers

ヘルパー

public array<string|int, mixed> $helpers = ['BcHtml', 'BcAdminForm', 'Url', 'BcBaser']

$style

初期設定スタイル StyleSet 名 basercms 翻訳がある為、コンストラクタで初期化

public array<string|int, mixed> $style = []

$toolbars

ツールバー

public array<string|int, mixed> $toolbars = ['simple' => [['Bold', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'Format', 'FontSize', 'TextColor', 'BGColor', '-', 'Link', 'Unlink', '-', 'Image'], ['Maximize', 'ShowBlocks', 'Source']], 'normal' => [['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo', '-', 'Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', 'Outdent', 'Indent', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Smiley', 'Table', 'HorizontalRule', '-'], ['Styles', 'Format', 'Font', 'FontSize', 'TextColor', 'BGColor', '-', 'Link', 'Unlink', 'Anchor', '-', 'Image'], ['Maximize', 'ShowBlocks', 'Source']]]

$_script

スクリプト 既にjavascriptが読み込まれている場合はfalse

protected bool $_script = false

Methods

createDomId()

フィールド名から Dom ID を生成する

public createDomId(string $field) : string
Parameters
$field : string
Return values
string

dispatchLayerEvent()

イベントを発火

public dispatchLayerEvent(string $name[, array<string|int, mixed> $data = [] ][, mixed $options = [] ]) : bool|Event
Parameters
$name : string
$data : array<string|int, mixed> = []
$options : mixed = []
Tags
checked
unitTest
noTodo
Return values
bool|Event

editor()

CKEditorのテキストエリアを出力する

public editor(string $fieldName[, array<string|int, mixed> $options = [] ]) : string
Parameters
$fieldName : string

エディタのid, nameなどの名前を指定

$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
string

getThemeEditorCsses()

エディタCSS設定

public getThemeEditorCsses() : array<string|int, mixed>
Tags
checked
noTodo
Return values
array<string|int, mixed>

initialize()

initialize

public initialize(mixed $config) : void
Parameters
$config : mixed
Tags
checked
noTodo
unitTest

setDraft()

下書きの設定

public setDraft(string $field, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
$field : string
$options : array<string|int, mixed>
Tags
checked
unitTest
Return values
array<string|int, mixed>

setEditorToolbar()

ツールバーの設定

public setEditorToolbar(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>
Tags
checked
noTodo
unitTest

build()

CKEditor のスクリプトを構築する 【ボタン一覧】 Source - ソース Save - 保存 NewPage - 新しいページ Preview - プレビュー Templates - テンプレート Cut - 切り取り Copy - コピー Paste - 貼り付け PasteText - プレーンテキスト貼り付け PasteFromWord - ワードから貼り付け Print - 印刷 SpellChecker - スペルチェック Scayt - スペルチェック設定 Undo - 元に戻す Redo - やり直し Find - 検索 Replace - 置き換え SelectAll - すべて選択 RemoveFormat - フォーマット削除 Form - フォーム Checkbox - チェックボックス Radio - ラジオボタン TextField - 1行テキスト Textarea - テキストエリア Select - 選択フィールド Button - ボタン ImageButton - 画像ボタン HiddenField - 不可視フィールド Bold - 太字 Italic - 斜体 Underline - 下線 Strike - 打ち消し線 Subscript - 添え字 Superscript - 上付き文字 NumberedList - 段落番号 BulletedList - 箇条書き Outdent - インデント解除 Indent - インデント Blockquote - ブロック引用 JustifyLeft - 左揃え JustifyCenter - 中央揃え JustifyRight - 右揃え JustifyBlock - 両端揃え Link - リンク挿入/編集 Unlink - リンク解除 Anchor - アンカー挿入/編集 Image - イメージ Flash - FLASH Table - テーブル HorizontalRule - 横罫線 Smiley - 絵文字 SpecialChar - 特殊文字 PageBreak - 改ページ挿入 Styles - スタイル Format - フォーマット Font - フォント FontSize - フォントサイズ TextColor - テキスト色 BGColor - 背景色 Maximize - 最大化 ShowBlocks - ブロック表示 About - CKEditorバージョン情報 Publish - 本稿に切り替え Draft - 草稿に切り替え CopyPublish - 本稿を草稿にコピー CopyDraft - 草稿を本稿にコピー

protected build(string $fieldName[, array<string|int, mixed> $options = [] ]) : string
Parameters
$fieldName : string
$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
string

        
On this page

Search results