You are not logged in.
Yeah, that's right.
Then it would probably be better to strip out br's and p's specifically
if (preg_replace('/\s| |<\/?p>|<br \/>/','',$_POST['newstext']) =='') {That's because in most cases even if theres apparently notthing in the WYSIWYG area, the return is not really empty.
Unfortunately there are a bunch of different things that can be inserted there, ranging from a simple linebreak to a <br /> or a empty paragraph with a nonbreaking space, so it's a not too trivial task to check epmty.
I have quickly put this together for a starter, but no guarantee that it works in 100% of cases
if (preg_replace('/\s| /','',strip_tags($_POST['newstext'])) =='') {1) http://xinha.gogo.co.nz/punbb/viewtopic.php?id=790
29 Aren't there greater problems out there?
I think neither Verdana nor Tahoma are available by default on macs (they are original MS fonts).
Also the input field is much wider, it had better have a width assigned to rule browser differences out.
May be it would fit more secure if the fields were in a table, not a div
Whose website is here: http://www.hypercubed.com/projects/firefox/
If there's any more need for discussion, please write here http://xinha.gogo.co.nz/punbb/viewtopic.php?id=573 to keep things together
If there's any more need for discussion, please write here http://xinha.gogo.co.nz/punbb/viewtopic.php?id=573 to keep things together
Looks a bit like xinha_config.stripBaseHref = true
Have a look at this plugin I made some time ago. http://xinha.python-hosting.com/ticket/628
SaveSubmit for Xinha
____________________
Registers a button for submiting the Xinha form using asynchronous
postback for sending the data to the server
Usage: This should be a drop-in replacement for a normal submit button.
While saving a message is displayed to inform the user what's going on.
On successful transmission the output of the target script is shown, so it should print some information
about the success of saving.
yes, but thats the way it is...
/*
* EDITOR ACTIVATION NOTES:
* when a page has multiple Xinha editors, ONLY ONE should be activated at any time (this is mostly to
* work around a bug in Mozilla, but also makes some sense). No editor should be activated or focused
* automatically until at least one editor has been activated through user action (by mouse-clicking in
* the editor).
*/
(pasted from htmlarea.js)
OK,
in your /ee/index.php
session_start(); //If not already
$_SESSION['weblog_id'] = $_GET['weblog_id']; //This strores your variable in the sessionin EFM cinfig.inc.php
session_start(); //Important, otherwise it won't work
//then like before
$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/pathToYourImages/weblogimages_'.$_SESSION['weblog_id'].'/';
$IMConfig['images_url'] = '/pathToYourImages/weblogimages_'.$_SESSION['weblog_id'].'/';oh, of course you are right, the parameter isn't available in the url of the popup. So you'd have to cache it somehow, e.g in a session variable. If you don't know how php sessions work, write again.
Best wishes
As ImageManager and EFM are configured through a php file (config.inc.php in the plugin directory) it should be no problem to use something like
$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/pathToYourImages/weblogimages_'.$_GET['weblog_id'].'/';
$IMConfig['images_url'] = '/pathToYourImages/weblogimages_'.$_GET['weblog_id'].'/';as to your second question: http://xinha.gogo.co.nz/punbb/viewtopic.php?id=116
Geoffrey,
<a href="xxx"></a> is indeed not correct. a + href is a hyperlink that is supposed to be clickable and thus cannot be empty. An anchor is usually a + name
xinha_config.showLoading = true;There is surely something you overlook. If you give link to your page, I can have a look at it. maybe i see something you didn't
If you post a link to your page we can understand your problem better
You can also access the content document as a property of the xinha object via
xinha_editors.youreditor._docThis is basically the same as you wrote, but you don't have to dig after the iframe object itself
This is surely something loads of people want.
I thought I'd seen this implemented before, probably in another editor similar to Xinha.
If you find out which editor this was I'd be greatly interested in how they did it
Hi koto,
great work, just wanted to thank you!
Ok, the problem is that your html contains linebreaks which is not possible in js variables. This should normally be taken care of by the str_replace("\n",'\n'... thing.
Maybe you have a different coding for the linebreaks (probably \r\n which is windows standard).
try it this way
print "snippets[i]['HTML'] = '".str_replace(array("\n","\r"),'\n',addcslashes($html,"'"))."';\n";or
print "snippets[i]['HTML'] = '".preg_replace("/\r|\n/s",'\n',addcslashes($html,"'"))."';\n";Hi,
I can't tell what the problem is from what I see, I'd have to have a look at the page.
is there any error report in the js console?
Hi,
unfortunately the Template plugin makes it almost impossible to edit the templates. Try InsertSnippet.