Hey, long time user of FCKEditor and it's always worked great. However, I'm experiencing a bug that's rather bizarre and I cannot seem to tamp down (edit: I'm using FCK 2.6.5, latest).
Basically: When I enter dollar amounts into FCK somewhere in the body of the text, and hit submit, its fine. However, when I then reload that same data back into FCK out of the database to edit the same data, its stripping the dollar signs and money but up to the decimal point (but not always, heh, keep reading). Note that this happens regardless of where any monetary values are placed in the text, whether just a single dollar amount or a monetary value somewhere in the middle of a paragraph. When I have PHP echo the input value going into FCK, the dollar amounts are there, unaffected. But FCK itself strips the dollar signs and some of the numbers.
Example: I enter "Hello, testing here, $25.52 is the amount" (w/o quotes), hit submit, I see in the DB and in the app's data list. I then goto edit on that data, FCK loads and shows "Hello, testing here, .52 is the amount".
Now the weird bit, another example: I enter "Hello, testing here, $1783.10 is the amount, so is $611.91 and don't forget $100.00", save, edit, it pulls: "Hello, testing here, 83.10 is the amount, so is 1.91 and don't forget 0.00."
It's like I have PHP variables '$17', '$61' and '$10' set and its loading them or something? Incidentally, if I view source for FCK's input value, I see (with this last example):
I'm pretty stumped here and am trying to figure out where the issue is happening. I'd be grateful if anyone could help me resolve this, I suspect it's a stupid issue where I'm overlooking the obvious.
Basically: When I enter dollar amounts into FCK somewhere in the body of the text, and hit submit, its fine. However, when I then reload that same data back into FCK out of the database to edit the same data, its stripping the dollar signs and money but up to the decimal point (but not always, heh, keep reading). Note that this happens regardless of where any monetary values are placed in the text, whether just a single dollar amount or a monetary value somewhere in the middle of a paragraph. When I have PHP echo the input value going into FCK, the dollar amounts are there, unaffected. But FCK itself strips the dollar signs and some of the numbers.
Example: I enter "Hello, testing here, $25.52 is the amount" (w/o quotes), hit submit, I see in the DB and in the app's data list. I then goto edit on that data, FCK loads and shows "Hello, testing here, .52 is the amount".
Now the weird bit, another example: I enter "Hello, testing here, $1783.10 is the amount, so is $611.91 and don't forget $100.00", save, edit, it pulls: "Hello, testing here, 83.10 is the amount, so is 1.91 and don't forget 0.00."
It's like I have PHP variables '$17', '$61' and '$10' set and its loading them or something? Incidentally, if I view source for FCK's input value, I see (with this last example):
<input type="hidden" id="ci_text:content" name="ci_text:content" value="<p>Hello, testing here, 83.10 is the amount, so is 1.91 and don't forget 0.00.</p>" style="display:none" />
I'm pretty stumped here and am trying to figure out where the issue is happening. I'd be grateful if anyone could help me resolve this, I suspect it's a stupid issue where I'm overlooking the obvious.