Default font for Rich Text field - richtextbox

In my xpages application, I have one comments field that is a rich text field. My users would like the default font to be Courier New. Yes, they can click the drop down and select Courier New, but they would like to be able to just start typing. I tried setting the style on the rich text control, but that didn't work. In the theme somehow maybe?
Any thoughts?

in theory (to be honest, I've never done it myself) this can be done through the rt editor's configuration. Xpages by default come with CKEditor which has its own JS API; you can find the documentation here:
CKEditor API
The relevant config.js is stored server-side at this location:
[domino-data]/domino/html/ckeditor/config.js

Related

How can I change the textbox (Edit) in a Find dialog to a Combobox in Delphi?

I currently use a standard TFindDialog in my Delphi application:
How can I change the textbox to a combobox? I'd like to set it up so that the user can easily see and select from the history, like this:
I currently use a standard FindDialog in my Delphi application.
How can I change the text box to a combo box?
You can't, at least not with TFindDialog, as it does not allow the use of a custom dialog template (the underlying FindText() API does, though).
However, there is another workaround for your situation...
In the TFindDialog.OnShow event, use FindWindowEx() to manually find the HWND of the Edit field in the dialog, and then use the Shell's IAutoComplete interface to enable a drop-down list on that HWND. You can write a class that implements the IEnumString interface to provide the entries that you want to appear in that drop-down list (for instance, by wrapping a TStringList that you store your entries in).
See MSDN documentation for more details:
Using Autocomplete
How to Enable Autocomplete Manually
Also see:
This answer to Google like edit/combo control for Delphi?
This answer to Auto append/complete from text file to an edit box delphi
This answer to How to use IAutoComplete together with TStringsAdapter?

umbraco how to extend the rich text editor

In Umbraco, is there a way to extend the RTE?
The only menus I have available to me when I am entering text are;
I need to be able to turn on the full suite of options not just those 8.
Go to Developer section, Data Types and find "Simple RTE" (or something like that). Inside that, you can add or remove options.
There's also a tinyMceConfig.config file in the /config/ folder that you can use to configure (duh) and expand on tinyMCE functionality in general. More on that here: https://our.umbraco.org/documentation/Using-Umbraco/Config-files/tinyMceConfig/ and here: http://imulus.com/our-thoughts/extending-tinymce-in-umbraco/

umbraco richtext editor deleted

I had a problem with umbraco richtext editor, it was not letting me insert images, so I followed a forum and deleted the richtext editor datatype in the developer section, then i recreated the richtext editor datatype with the same settings.
My problem is: all the properties in the node which were of type RichText editor have disappeared from the content pages. i cant see the text and the editor. But i can still see the content on the website!
so i cannot edit them from the content section but i can see them on the website!
Kindly, help!
Most likely you need to add the bodyText property (or whatever you were using) to the document type(s) again. It's possible that the data was also removed, so beware republishing a node until you have the text back in there.
The reason you can still see the content on the site is because when a node is published, it's properties are cached. When the site has to access a property for the front end, it pulls it from the cache rather than getting it directly from the database. This allows the site to perform faster.
So add the rich text editor back to the document type. Copy the text from the front end back into the backend (hopefully you don't have a million pages), and always perform a backup of the site, database and all, before attempting fixes of this nature.
Have you tried access Developer/Data Types/Richtext editor and set again the options that you want?

rails editing rtf documents

I want to edit (for example, replace any placeholder by any text) a rtf documents in Rails application.
What is the simplest way to provide it?
Thanks.
There are a few options based on these SO Posts --this too.
TinyMCE
Rich Text Editor
CKEditor
MarkItUp
WMD
However those are all from the UI.
If you want to manipulate it behind the scenes:
Updated branch of ruby-rtf
Ruby-rtf

textarea that was using plain text with option of markdown or textile filter now needs images

My clients can enter text into textarea and have the option to use the markdown or textile filters for each textarea.
With some models (articles, newsletter, etc) they can upload images to associate with the model, which are displayed in a column next to the text of the text.
This worked fine for a while, but they have now told me that the want the ability to put the images INSIDE the text a specific positions.
What is the best way to go about this? I suppose I may have to use a wysiwyg for this, but would rather not. And how would this work for images which are not yet on the server, etc?
There are different directions you could go to:
Follow the path of Confluence, which released in their new version 4.0 a rewritten WYSIWYG editor, that stores as source XHTML, not any more wiki markup.
Leads to an update of all pages when migrating.
Was pretty difficult to implement. I do not know if they use any more the TinyMCE editor of previous versions.
Follow the format of markdown how to include images in your source format. So by typing: This is my text. !image.png! The inline image shows ..., you will have a format that is understandable.
You have to expand the interpretation, so that the !<filename>! will be mapped that is stored locally anyway.
You have to add clear-up dialogs for the images that are yet not known, so doing bulk uploads ...
You may provide a drag area on your view, that then shows the filename and gives examples how to include that inside the text area.
Go for something in between, by allowing users to drag images inside the editor. There are plugins written in Javascript that allow you to do that, e.g. UI Draggable for jquery
I have no idea how to integrate that image inside the text editor. Overlay?
So the second one is the easiest, and the user knows how to do it. If they only decide that this is the solution they want to have :-)
I think I'm going to use a combination of #2 above, and the Liquid templating engine.

Resources