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".
Related
I have some string elements in the strings.xml file of my android project and I want to change their name in the strings.xml file and everywhere else where they were used.
Is there a way to do this in android studio without having to go through each file manually to edit the names?
Right click the name in 'strings.xml'
Select 'Refactor' option
Select 'Rename' option
Edit the name and hit 'Refactor'
As a shortcut, you can change the name of an XML element, this way:
Select the XML's name (or XML's file in the left panel),
press SHIFT+F6 (or FN+SHIFT+F6 on MacOS),
change the name (in the opened box),
click refactor.
According to this source the definition if Permute Lines submenu is following:
{
"caption": "Permute Lines",
"children": [...]
}
And it doesn't contain an id. Is there a way to add items to this submenu?
Also this source is 5 years old and is probably for Sublime Text 2. Is there a more recent version of default menu file?
To answer your second question first, you can always get at the most recent menu definition from your own copy of Sublime; it's stored in the file Default\Main.sublime-menu, which you can get to most easily using PackageResourceViewer to open it up.
That said, the part of the menu that you're referencing in your question is the same between Sublime Text 2 and Sublime Text 3 and neither of them has an id value directly within the Permute Lines sub-menu.
By creating a Main.sublime-menu in some other package (e.g. your User package) you could create entries that are adjacent to that sub menu, but in order to actually put new content directly inside of it you would need to create an Override.
You can do that via PackageResourceViewer; if you use it to open up the Default\Main.sublime-menu file, you can modify the file and when you save it, it will be saved as an override.
From this point forward your override becomes the new default menu; other packages that extend the menu can still do so, but they will be merged with your version and not the shipped version.
This is not without its risks in that if a future version of Sublime Text includes a modified version of the menu, your override will still take precedence and you won't be warned that it's happening, so you could potentially miss out on fixes.
This happened recently when the latest build of Sublime modified the base menu to include an install link for PackageControl, for example.
Also, this is only a viable solution if you want to edit the menu for your own purposes; if you're a package author, you can't use this method to distribute your own changes.
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'
I wonder if there is anything more advanced for source formatting of Xpages than what is built-in to the editor. In particular I would like to remove white space from the code.
Anything out there?
I use the "Clear all blank lines" option in the DDE File > Preferences > XML > XML Files > Editor. There are a couple options there you may find of use, such as ensuring "Insert whitepsace before closing empty end-tags" is un-checked and whether you choose to "Preserve whitespace in tags with PCDATA content". It may not be "advanced", but is usually serves me well.
Reminder, XPage design element formatting (XPages, Custom Controls) is for readability only, as they get compiled into Java classes on project build (visible in Project Explorer, under Local > xsp).
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.