Problem/Motivation
Hi,
I followed the different steps to create a tooltip from CKEditor from a custom block.
The "From Block" select list field is always empty even if many custom blocks exist.
Steps to reproduce
Follow the different steps to install the module, to create a custom block and to use it via a tooltip from CKEditor.
Proposed resolution
File EditorTooltipDialog.php, line 86:
$tooltip_blocks = $content_blocks = [];
I don't know why this line has been added, it just empties the 2 db requests made just above to retrieve the custom blocks.
Maybe a remain from some testing.
Remaining tasks
Remove that line/review the file
Comments
Comment #2
maelcorm commentedComment #3
Aramithran commentedJust wanted to say that I have the same issue.
I did try the proposed solution and it does work. However, I'm not certain if this modification will have any other repercussions.
Comment #4
jfurnas commentedUploading the patch to remove the unneeded lines.
Comment #5
matthieuscarset commentedOMG 🤦
Please forgive me for this issue. Thank you for reporting it.
Comment #7
matthieuscarset commented