Problem/Motivation

Error when trying to add HTML block
Error: Unsupported operand types in vardoc_book_editor_js_settings_alter() (line 19 of profiles/vardoc/modules/vardoc_features/vardoc_book/vardoc_book.module).

Steps to reproduce

When trying to add custom HTML block from (/block/add/varbase_html_code_block)
I got this error:
Error: Unsupported operand types in vardoc_book_editor_js_settings_alter() (line 19 of profiles/vardoc/modules/vardoc_features/vardoc_book/vardoc_book.module).

Proposed resolution

In vardoc_book.module
$settings['editor']['formats']['full_html']['editorSettings'] += $extra_editor_settings;
must check if full_html format is exist

CommentFileSizeAuthor
#2 3216566-2.patch730 bytesqusai taha

Comments

qusai taha created an issue. See original summary.

qusai taha’s picture

Issue summary: View changes
StatusFileSize
new730 bytes
qusai taha’s picture

Status: Active » Needs review
qusai taha’s picture

Issue summary: View changes

rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Issue tags: +vardoc-5.0.0-alpha3, +vardoc-5.0.0

Thank you, Qusai for reporting and patching.
Committed ... Thank you :)

rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.