Skip to content

Commit

Permalink
Improve Rich Text module (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Nov 6, 2023
1 parent c5082fd commit 0b8ec0b
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 610 deletions.
27 changes: 23 additions & 4 deletions modules/text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
<title>Media</title>
<helpText>Choose media</helpText>
</property>
<property id="javaScript" type="code" variant="javascript">
<title>Optional JavaScript</title>
</property>
<property id="backgroundColor" type="color">
<title>Background Colour</title>
<helpText>The selected effect works best with a background colour. Optionally add one here.</helpText>
Expand All @@ -68,13 +65,34 @@
</property>
<property id="marqueeInlineSelector" type="text">
<title>Marquee Selector</title>
<default>.item p</default>
<default>p</default>
<helpText>The selector to use for stacking marquee items in a line when scrolling Left/Right.</helpText>
<visibility>
<test>
<condition field="effect" type="neq">none</condition>
</test>
</visibility>
</property>
<property id="seeAdvancedFields" type="checkbox">
<title>Show advanced controls?</title>
<helpText>Show Javascript and CSS controls.</helpText>
<default>0</default>
</property>
<property id="javaScript" type="code" variant="javascript">
<title>Optional JavaScript</title>
<visibility>
<test>
<condition field="seeAdvancedFields" type="eq">1</condition>
</test>
</visibility>
</property>
<property id="styleSheet" type="code" allowLibraryRefs="true" variant="css">
<title>Optional Stylesheet</title>
<visibility>
<test>
<condition field="seeAdvancedFields" type="eq">1</condition>
</test>qa
</visibility>
</property>
</properties>
<preview></preview>
Expand All @@ -85,6 +103,7 @@
</script>
<style>
{% if backgroundColor %}body { background-color: {{backgroundColor}}; }{% endif %}
{{styleSheet|raw}}
</style>
]]></twig>
</stencil>
Expand Down
2 changes: 0 additions & 2 deletions ui/src/core/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,6 @@ window.forms = {
).each(function(_k, el) {
formHelpers.setupCKEditor(
container,
{},
$(el).attr('id'),
true,
null,
Expand Down Expand Up @@ -2382,7 +2381,6 @@ window.forms = {
// Reload
formHelpers.setupCKEditor(
$formContainer,
{},
elId,
true,
null,
Expand Down
Loading

0 comments on commit 0b8ec0b

Please sign in to comment.