Closed (works as designed)
Project:
Layouter - WYSIWYG layout templates
Version:
8.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2016 at 14:47 UTC
Updated:
25 Aug 2017 at 07:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adci_contributor commentedHi Andrzej7!
After module installation and setting up configurations try to add/edit content with textarea field. Under tha fieldt you will see link (see attachments) and if you click on it layouter form will be displayed in popup. Complete it and the content will be inserted in textarea.
Make sure that you select available text format of area.
Comment #3
adci_contributor commentedComment #4
jmoreira commentedActually, this happens when there's only one text format available, then there's no select, but a hidden input element with the text format value. I'm posting a patch to fix this.
Comment #5
jmoreira commentedComment #6
jmoreira commentedComment #7
josephdpurcell commentedI believe I am experiencing the same issue. I have core 8.2.4 and layouter 8.x-1.0 (datestamp: 1470121447) installed. I have enabled all options at /admin/config/content/layouter and I do not see the "Select the text template" button. It is in the markup if you view source, but it is hidden to the user. (See attached screenshot.)
I am renaming the title to "Select template link not visible" and clarifying the description.
I am setting to "Needs work" since the patch from #5 did not resolve the issue. Setting to Major priority since this prevents using the module and there is no workaround.
Comment #8
josephdpurcell commentedI believe I have found the cause of the issue. In js/layouter.js, the value of selected_format is "basic_html" and the value of active_text_formats is ["full_html", "plain_text"]. So, when line 14 runs, it hides the link because "basic_html" is not one of the active text formats. See attached screenshot of Chrome debug tools.
Comment #9
josephdpurcell commentedThe attached patch is clearly wrong, however, it does further clarify the cause of the issue. By manually adding "basic_html" to the list of config options and enabling it in Layouter settings, I can now see the link. See attached screenshot example.
Comment #10
adci_contributor commentedThe "Select the text template" link is visible only in "Full HTML" mode, because that option provides ability to display layout of columns, unlike "Basic HTML" that erases both formatting and any column layouts either way.
So, try to switch into "Full HTML" mode and give feedback if it's successful.
Comment #11
adci_contributor commented