Anyone using this extension will likely want to add the following line of code in the list of Xinha plugins in the $settings[‘Plugins_To_Use_With_Xinha’] array in ext.xinha.php:
'HtmlEntities' => "HtmlEntities",
And enable this plugin in the Xinha extension settings.
What this plugin does is convert any special characters into their HTML-safe (and encoding agnostic) equivalent (e.g. &trade). Me, I’d prefer if it used the number format (e.g. ®), but that’s just a nit-pick (and something I could manually change in the plugin if I had the time).
We had major troubles with the UTF-8 special characters when doing SQL exports and imports. This should take care of any of those problems.
You’ll also want to make sure to download a recent version of Xinha, as I think this plugin was only introduced sometime in the last little while.
———-
Edit: Phoebe, input the following code anywhere in Step 3 in ext.xinha.php to load the stylist style sheet:
xinha_config.stylistLoadStylesheet("/_res/css/xinha-styles.css");
If it helps, here’s my entire step 3:
/** STEP 3 ***************************************************************
* Configure.
*************************************************************************/
xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();
';
if (strlen($this->settings['CSS_url']) > 0) {
$r = $r . 'xinha_config.pageStyle = "@import url(' . $this->settings['CSS_url'] . ');";
';
}
$r = $r .
'xinha_config.stripBaseHref = true;
xinha_config.baseHref = "http://thedomaintobestripped.com";
xinha_config.toolbar = [
["undo","redo","separator", "formatblock","bold","italic"],
["separator","justifyleft","justifycenter"],
["separator","insertorderedlist","insertunorderedlist","separator","outdent","indent"],
["separator","createlink","insertimage"], ["separator","htmlmode"]
];
xinha_config.formatblock = {
"— format —" : "",
"Normal" : "p",
"Heading 1": "h1",
"Heading 2": "h2",
"Heading 3": "h3",
};
xinha_config.stylistLoadStylesheet("/xres/css/xinha-styles.css");
xinha_config.pageStyle = "body { font-family: Verdana, sans-serif; font-size: .9em; }";
'.
'