-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditorjs.module
More file actions
51 lines (49 loc) · 1.03 KB
/
editorjs.module
File metadata and controls
51 lines (49 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @file
* Primary module hooks for Editor.js for paragraph module.
*/
/**
* Implements hook_theme().
*/
function editorjs_theme() {
return [
'ce_blocks' => [
'render element' => 'elements',
'file' => 'editorjs.theme.inc',
],
'ce_default' => [
'variables' => ['data' => []],
'file' => 'editorjs.theme.inc',
],
'ce_block' => [
'variables' => ['data' => []],
'file' => 'editorjs.theme.inc',
'pattern' => 'ce_block__',
],
'ce_block__header' => [
'base hook' => 'ce_block',
],
'ce_block__list' => [
'base hook' => 'ce_block',
],
'ce_block__delimiter' => [
'base hook' => 'ce_block',
],
'ce_block__checklist' => [
'base hook' => 'ce_block',
],
'ce_block__code' => [
'base hook' => 'ce_block',
],
'ce_block__linkTool' => [
'base hook' => 'ce_block',
],
'ce_block__image' => [
'base hook' => 'ce_block',
],
'ce_block__table' => [
'base hook' => 'ce_block',
],
];
}