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

CommentFileSizeAuthor
#4 3335323-fixing-ckeditor-integration.patch436 bytesjfurnas

Comments

maelcorm created an issue. See original summary.

maelcorm’s picture

Issue summary: View changes
Aramithran’s picture

Just 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.

jfurnas’s picture

StatusFileSize
new436 bytes

Uploading the patch to remove the unneeded lines.

matthieuscarset’s picture

Status: Active » Fixed

OMG 🤦

Please forgive me for this issue. Thank you for reporting it.

matthieuscarset’s picture

Status: Fixed » Closed (fixed)