Skip to content

Commit 1a32419

Browse files
committed
Add getter for editor instances.
Fix setter of editor table id.
1 parent 4fe74af commit 1a32419

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/Html/Editor/Editor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ public function toJson($options = 0)
264264
$replacements = [];
265265

266266
foreach (Arr::dot($parameters) as $key => $value) {
267-
if ($key === 'table') {
268-
Arr::set($parameters, $key, '#' . $value);
269-
}
270-
271267
if ($this->isCallbackFunction($value, $key)) {
272268
$values[] = trim($value);
273269
Arr::set($parameters, $key, '%' . $key . '%');

src/Html/HasEditor.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function newEditor($fields)
6868
}
6969

7070
if (! $editor->table) {
71-
$editor->table($this->getTableAttribute('id'));
71+
$editor->table('#' . $this->getTableAttribute('id'));
7272
}
7373

7474
if (! $editor->ajax) {
@@ -77,4 +77,12 @@ protected function newEditor($fields)
7777

7878
return $editor;
7979
}
80+
81+
/**
82+
* @return array|null
83+
*/
84+
public function getEditors()
85+
{
86+
return $this->editors;
87+
}
8088
}

0 commit comments

Comments
 (0)