Set TinyMCE to output HTML not XHTML - tinymce

How does one configure TinyMCE 4.3.3 for Modx Revolution 2.2.7 to output HTML instead of XHTML?

Go to System > Settings, search for tiny.element_format and change it to html. Et voila.

Related

TinyMCE Content_css is not working in Cloud version

I am using cdn.tiny.cloud v5.
When I initialize the editor I'm using content_css
tinymce.init({
content_css: "myCssFile.css"
...
});
When I use TinyMce cloud version my css file does not affect the editor content.
When I change to TinyMCE self host version, the content_css does work.
Am I missing something?
Thank's
Zmira
When I use TinyMce cloud version my css file does not affect the
editor content
If you look at the browser's Network tab I suspect you will see that (based on how you defined the path to your CSS file) that the browser is looking on the Cloud server for your CSS.
When you use a simple "path" like that you are in effect telling TinyMCE to go back to where it found TinyMCE for the CSS file but if you are pulling TinyMCE from the Cloud server that would not be a valid path for the CSS. You likely need a more complete path. For example:
content_css: "https://my.server.com/files/css/myCssFile.css"

Add further special characters to Umbraco Rich Text Editor

Using Umbraco version 7.3.3 assembly: 1.0.5813.17867
I have been asked to allow a further special character to be added to the built-in character map functionality of the TinyMCE rich text editor used by / in the Umbraco back office.
The new character that I want to allow in the table of special characters is:
black down-pointing triangle
, also known as
&#9660
and
▼
rendered as: ▼
This should be available for all rich text editors in the Umbraco installation, so a global approach is required.
I can find this file:
\umbraco\lib\tinymce\plugins\charmap\plugin.js
that defines all the allowed characters that can be inserted, but it's part of the Umbraco installation. I don't want to edit this file (or its minified sibling) as we'll lose this modification on an Umbraco upgrade.
I was hoping there would be something that could be done with the
/config/tinyMceConfig.config
file, but it would seem that because the charmap is a plugin to TinyMCE there are no configuration options for it in the global TinyMce config.
Any suggestions would be welcome :-)
TinyMCE supports adding items to the character map via the charmap_append configuration option:
https://www.tinymce.com/docs/plugins/charmap/#charmap_append
Not sure how you would add this to Umbraco but the editor itself definitely supports adding things to the character map.

The TinyMCE editor is not showing when we edit/create body content

We have turned on the TinyMCE module and set the Body flavor to html. Unfortunately, though, the editor control does not display when we edit or create posts. Currently, we're working around this using LiveWriter to publish. What do you know about why TinyMCE wouldn't be working?
The problem was that I was using the markdown flavor for the Body Part without having enabled the Markdown module. Here is how I fixed it:
Option 1: Enable Markdown
Use this option if you want to keep using markdown.
Orchard Admin
Modules
Markdown > Enable
Option 2: Using HTML not Markdown
Use this option if you'd like to use HTML instead of markdown.
Orchard Admin
Content Definition
Blog Post > Edit
Parts > Body > Body Settings > Flavor > HTML

Remove "generated by doxygen" and timestamp in PDF

As the title. I've just started using doxygen, with the first test run I noticed the PDF created has "created by doxygen 1.8.3.1" followed by the date and time, across the front page.
Is it possible to remove this? or even just move it, say to the end of the document?
I have noted other similar questions but only for the HTML (or RTF which Im not generating) and not PDF
You can do this by using a custom LaTeX header.
First generate a default one using
doxygen -w latex header.tex footer.tex doxygen.sty
now edit the header.tex and look for the "Generated on ..." part and replace that by something of your liking.
Then mention the customized header in doxygen's configuration file
LATEX_HEADER = header.tex
and run doxygen as normal.
Note: When you upgrade to a newer version of doxygen you may need to update your custom header as well.
I believe you should use the HTML_FOOTER configuration tag.
I haven't tested this, but it sounds right:
The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each generated HTML page. If the tag is left blank doxygen will generate a standard footer.

How to paste HTML to clipboard with GTK+

How do I paste HTML to the clipboard so that it is recognized as HTML in applications such as Open Office and MS Word? It is possible when using gtkhtml or gecko if you've already rendered it, but I need a straight GTK+ solution.
You call gtk_clipboard_set_with_data or gtk_clipboard_set_with_owner, passing a GtkTargetEntry with "text/html" as the value for the target field.
It's good practice to also provide "UTF8_STRING" and "STRING" targets for applications that don't support HTML.
Here's an example of some code that does this: GEdit HTML clipboard plugin.