core-text
Rich Text
Core
Add Text directly to a Layout
fa fa-font
playlist
text
1
1
1
html
10
600
400
Enter text or HTML in the box below.
Enter the text to display. The red rectangle reflects the size of the region you are editing. Shift+Enter will drop a single line. Enter alone starts a new paragraph.
Media
Choose media
Background Colour
The selected effect works best with a background colour. Optionally add one here.
Effect
Please select the effect that will be used to transition between items.
none
Speed
The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1).
none
Marquee Selector
p
The selector to use for stacking marquee items in a line when scrolling Left/Right.
none
Show advanced controls?
Show Javascript and CSS controls.
0
Optional JavaScript
Add JavaScript to be included immediately before the closing body tag. Do not use [] array notation as this is reserved for library references. Do not include script tags.
1
Optional Stylesheet
1
qa
{{javaScript|raw}}
]]>
= 0) {
hasClock = true;
properties.text = properties.text.replace('[Clock]', '[HH:mm]');
}
if (properties.text && properties.text.indexOf('[Clock|') >= 0) {
hasClock = true;
properties.text = properties.text.replace('[Clock|', '[');
}
if (properties.text && properties.text.indexOf('[Date]') >= 0) {
hasClock = true;
properties.text = properties.text.replace('[Date]', '[DD/MM/YYYY]');
}
if (properties.text && properties.text.indexOf('[Date|') >= 0) {
hasClock = true;
properties.text = properties.text.replace('[Date|', '[');
}
if (hasClock) {
// Use regex to out the bit between the [] brackets and use that as the format mask for moment.
var text = properties.text;
var regex = /\[.*?\]/g;
properties.text = text.replace(regex, function (match) {
return '';
});
// Set moment locale
moment.locale(globalOptions.locale);
}
// Save hasClock as global variable
xiboIC.set(id, 'hasClock', hasClock);
]]>
*'));
// Image render
$(target).find('img').xiboImageRender(properties);
]]>