Modx rich text input field for template variable - modx

I'm new to modx Rev and I am trying to set the input field for a template variable so that it uses my chosen richtext editor. If I set the input field as rich text I just get a 1 line text field. If I set the editor as Textarea then thats all I get a text area field - there is no option in the drop down under input options for "html" as some tutorials suggest. Have I not enabled something? I am a bit lost being new to the app.

I had the same problem. My solution
Go to Package Management and search for TinyMCE.
Download it. Then click Install.
Set the Input for my Template Variable to RichText
Click on Resource then Template Variables and now I see the TinyMCE editor

Which rich text editor have you installed?
Is Rich Text enabled for the resource you are editing, if not then I think a different editor will be used.

Try downloading TinyMCE instead through package management, and use that one instead. Might wanna uninstall ACE to make sure it doesn't interfere somewhere.

Related

Spell check contents of Rich Text Content Control

I am having an issue with Word 2013 and spell checking the contents of Rich Text Content Controls.
I am currently working on a project where text is inserted (via a Word Add-In) into a pre-defined document template which makes use of Rich Text Content Controls. The inserting of the data into the content controls all works great, but I am having an issue where the newly inserted text within the content controls is not being spell checked by Word 2013.
I have read numerous posts on line which suggest that 'grouping' the content controls in the document resolves the issue, but haven't been able to implement this fix.
Text outwith the content controls is being spell checked, but any text within the content controls is not.
Steps to reproduce:
Open Word 2013 and create a new blank document.
Ensure that the DEVELOPER tab is enabled (if not, see instructions here)
On the DEVELOPER tab, enable Design Mode under the Controls group.
Still on the DEVELOPER tab, under Controls, add a new Rich Text Content Control.
Amend the default "Click here to enter text." so that it contains a spelling mistake.
On the DEVELOPER tab, exit Design Mode.
On the REVIEW tab, choose Spelling & Grammar. You should observe that the deliberate spelling mistake within the content control is not recognised.
James, the text you edit in the Rich Text Content Control is what is called the Placeholder Text. This text is to be defined by the 'content' developer.
This text won't be part of the Spelling & Grammar review as the Placeholder Texts are 'constants' defined by the developer, hence the reason why they are under the Developer tab.
So it is advised to first put the texts that you want to use in a Placeholder in a normal document, do the spell check and copy them over and apply to the Placeholder Text.
I think it is fairly reasonable not to include the Placeholder texts in Spelling & Grammar as:
It will take time to process the fixed assets
End users may not have access to the Placeholder Texts to edit the 'mistakes'

Liferay WYSIWYG editor copy from Word

I saw Liferay's WYSIWYG editor has option to copy content from Word. But I notice that the formating (especially headings) don't match and the images are not copied. Is it a known issue?
Does Liferay support integration with any WYSIWYG editor in which I can copy content from word as is without losing the formatting and images?
It is a known issue that will be fixed in Liferay 7.0.0 M1 - see https://issues.liferay.com/browse/LPS-29493 .
Liferay uses CK Editor, which can copy the Word content including styles. CK Editor needs to be configured to preserve the styles. The options are:
pasteFromWordRemoveFontStyles - http://docs.ckeditor.com/#%21/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles
pasteFromWordRemoveStyles - http://docs.ckeditor.com/#%21/api/CKEDITOR.config-cfg-pasteFromWordRemoveStyles
To preserve the styles in Liferay 6.2, you need to create a JSP hook and customize the configuration of the editor.
To test the functionality without the hook, you can open any web content article and modify the configuration of the current CK Editor instance. Run the following commands in JavaScript console of your browser:
CKEDITOR.instances['_15_articleContent'].config.pasteFromWordRemoveStyles = false;
CKEDITOR.instances['_15_articleContent'].config.pasteFromWordRemoveFontStyles = false;
Pay attention to the HTML source of the copied document - there will be a lot of inlined styles. It may now be exactly what you want. You may need some additional processing to clean up the document. That would mean another hook.

Unable to copy Lotus Notes text field's content to clipboard

sometimes i'm unable to copy and paste the text content in a field of a form.
i try to do this:
FIELD ~$KeepPrivate:=~$KeepPrivate;
#SetField("$KeepPrivate";#Unavailable);
SELECT #All
but the situation is the same and i'm not able to copy and paste....
Someone can help me ?
thank's
Maybe property "Disable printing/forwarding/copying to clipboard" is set in form properties
It shouldn't be set to enable copying text to clipboard.
Another reason for not being able to copy field's text could be field property "Hide paragraph when document is Copied to the clipboard" although it has effect in read mode only.
.
Other possible reasons are described here. In case your document has a field "$KeepPrivate" then execute this formula on document:
FIELD $KeepPrivate := #DeleteField
To resolve this just go to Preferences / Basic Notes Client Configuration and on Additional options box enable (Enable alternate keyboard shortcuts (for example, CTRL+R=Reply)
Here I would like to know if you are using CTRL+C or CTRL+Insert.
Please try using CTRL+Insert once and see if you can achieve copying it to your clipboard.

How to enhance the standard content element by an additional RTE field?

So I have an extension which I can choose as a content element. It has his own tab ("video") but also uses the standard tab "general" and some special tabs where I can configure the extension. Is it possible to add a "RTE" text tab (like in "Text with images") to the "general" tab? It just uses a "header" field.. but I really need the option for the editor that he can add RTE text in a additional field (like in "text with images".
In the ext_tables.php of your plugin add the bodytext column back to tt_content:
...
t3lib_div::loadTCA('tt_content');
// this line is probably present already:
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key';
// add this line:
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform,
bodytext;LLL:EXT:cms/locallang_ttc.xml:bodytext_formlabel;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],rte_enabled,';
...
This will not be in the 'General' but in the 'Plugin' tab though. I'm not aware of a way to add it to the 'General' tab.
You can use the Kickstarter: go to the extension module, create a new extension with the Kickstarter and add a filed choosing "extend table".

Button-Triggered Insert File Only Works If Portal Contains Edit Box for Container Field

I'm working with a FileMaker Pro 11 database that contains a portal. I've added an "attach file" button to the portal which triggers a simple "Insert File[portal_table::attachment_field]" script. When I click on the button, I would expect an insert file dialog box to appear. Instead, nothing happens.
If I add a text box to the portal, setting the text box's field to portal_table::attachment_field, the attach button starts working.
Why am I required to add this text box to the portal in order for my button-triggered script to work? Is there a way I can modify my script so that it works without requiring the text box's presence?
Thank you,
Ben
Generally speaking FileMaker's "Insert..." commands behave as if a user has done an action manually (activating script triggers, selecting the field, etc.) including the requirement that the field actually be displayed on the screen.
Unfortunately, as far as I am aware, there is not a way to use "Set Field" to specify a file to be added to a container field. One possible work-around is the following:
Freeze Window
Set Variable [$RecordIndex to RelatedTable::Index]
Go to Layout [A Layout of RelatedTable specifically for inserting files]
Enter Find Mode
Set Field [Index to $RecordIndex]
Perform Find
Insert File
Go to Layout [Original Layout]
Alternately, it may be easier to just include the field on the layout at a very small size (1 pixel x 1 pixel).

Resources