Hi,
i have a simple question, but i leeds to a big problem
I use the FCKeditor to enter data with embedded html to my forms and the database, but i just figured out, that when i enter some custom tags in source and than change some formats with the editor, it overwrites all my custom tags in "lowercase"
I.e. i use <MyTag KatID="100">text text text </MyTag>
than the editor overwrites it with:
<mytag katid="100">text text text</mytag>
But that leeds to some important problems, because than some of my xml-schema become invalid and also some XSL stylesheets doesn't work anymore (
I need urgend help on that? How can i switch that behaviour of, while i need my own tags in the right case!
Thanks, Marcus
Thu, 07/05/2007 - 12:09
#1
RE: Problems with Custom Tags!? :-(
Hi, does anyone has any suggestions about this?

BTW: I didn't get this post by mail, i see it only in here in the forum
RE: BUG - Problems with Custom Tags! :-(
Hi again,


after i have read more deeply through the CustomSettings and the Configuration Options I'm more and more sure that these things seems to be BUGs! Am i right? If I'm wrong, please correct me and tell me how to use those options right
Following Options are not working within me webapp
Tested with FCK 2.4.3 on Firefox 2.0.0.4
* FCKConfig.GeckoUseSPAN = "false";
But still the editor inserts <span...> when editing phrases to bold or italic:
before: --> Item
after: --> <span style="font-weight: bold; font-style: italic;">Item</span>
* FCKConfig.ProtectedTags = 'endnote|MBK|PV|LK1a|LK1b|LK2|InhCod' ;
When i edit something and than switch back to the source all my custom Tags are switched to lower-case. I need this to be fixed, while i use the FCK to edit some xml Datafiles from my database and therefore all Tags art casesensitive - otherwise my data will be useless after editing them
before: --> <MBK KatID="10">text</MBK>
after: --> <mbk katid="10">text</mbk>
* FCKConfig.ProtectedSource = "true" ;
This line isn't there in the fckconfig.js, so i just tried to add it, but than the FCK doesn't work anymore. Any other documentation on that Configuration or is it still not implemented?
Any help and answers are appreciated!
Thanks and regards, Marcus
RE: BUG - Problems with Custom Tags! :-(
On the other side FCKConfig.ProtectedSource is an object, so setting it to a pseudo boolean is again wrong. There are several samples in the default fckconfig.js file.
And most important: remember that FCKeditor is an HTML editor, so trying to use mixed html and custom XML tags with no namespace can lead to lots of problems, specially if you set it wrong
RE: BUG - Problems with Custom Tags! :-(
Hallo Alfons,
(
sorry for my false typing here, but! Here is the Copy out of the fckconfig.js!
FCKConfig.GeckoUseSPAN = false ;
-> and it DOES NOT work!!!
FCKConfig.ProtectedTags = 'endnote|MBK|PV|LK1a|LK1b|LK2|InhCod|TestTag' ;
-> this one should be typed right, because i copied it out of your Configuration documentation, but it also DOES NOT work!
FCKConfig.ProtectedSource = ???
-> OK, this one was my fault, but there is NO INFORMATION on how to set this or make it working, so i asked for further steps, didn't i?
And BTW please correct me if i'm wrong, but i work with XML Files and a XML database. I definded schemas and my subtrees as xs:any, so saving, validating, working with those files, even indexing works fine! After loading those files to my webapp, the first thing i do is, to transform all those custom tags into regular html, then serializing it and after that, also everything is displayed right in the browser! Without any need of defining a special or custom namespace!
BUT this only could work, if my custom tags WILL HAVE THE RIGHT CASE! and not all be tranformed to lowercases (and this only, when i edit something in the FCK.
So, ok, wrting down some misspelled config was my fault, but believe me, the first two config-settings are spelled right and they DON'T WORK!
So, is this a BUG or isn't it? And are there further information on ProtectedSource Missing in your documentation or did i overlooked them?
Sorry, i didn't want to sound impolite, but after spending half the day finding those errors, now having problem with my database, because your FCK just lowered all my tags and i'm having to do a lot of rework now because of that, i'm a little disapointed of your answer!
OK, IT WAS MY FAULT to misspell the setting in the thread, but i'm sorry, those functions DON'T WORK at all!
Thanks and best regards, Marcus
PS: I hope to get further answers on how to solve that problem! PLEASE!
RE: BUG - Problems with Custom Tags! :-(
> -> and it DOES NOT work!!!
Then you have some problem in your browser or you're loading a cached version.
> FCKConfig.ProtectedTags
This setting is aimed for tags that the browser has some trouble parsing. I don't think that this is your case.
> FCKConfig.ProtectedSource = ???
> -> OK, this one was my fault, but there is NO INFORMATION on how to set this or make it working, so i asked for further steps, didn't i?
There are several samples in the config file, you just set up a regexp to protect the parts that you don't want the editor to touch.
And I repeat: FCKeditor is an HTML editor, if you try to use it with XML code then you have to do things carefully and even then it might not work as you expect because nobody has tried that thing before.
RE: BUG - Problems with Custom Tags! :-(
Hi Alfons,
What else can i do???
But as i understand it, this is not the behaviour it should have, or for what is this useful?
>> FCKConfig.GeckoUseSPAN = false ;
>> -> and it DOES NOT work!!!
> Then you have some problem in your browser or you're loading a cached version.
I'm using FF 2.0.0.4 and i don't think i have problems with it. Also i clear the cache every time i make changes, exactly to be sure, that the FCK ist loaded new
>> FCKConfig.ProtectedTags
>This setting is aimed for tags that the browser has some trouble parsing. I don't think that this is your case.
I thought and understood it the way, that this a place where i can protect CustomTags - refering to the documentation of the FCK.
Here is the part that i refer to:
ProtectedTags
-------------
In many situations, it is important to be able to switch to the source view in FCKeditor and add a few custom tags, needed for custom processing, or whatever. The problem is that browsers don't know how to handle non standard HTML tags, and usually break the DOM tree when finding them (specially IE).
To be able to load such tags in FCKeditor, maintaining their positions in the DOM tree, just use the "ProtectedTags" setting, listing the names of the tags you want to protect separated by a pipe (|). For example:
// The following instructs FCKeditor to accept the tags <MYTAG> and <CUSTOM>.
FCKConfig.ProtectedTags = 'MYTAG|CUSTOM' ;
Thats exactly the way i tried it as you can see above, but it also conferts those custom tags from normal to lowercase!
> FCKConfig.ProtectedSource = ???
> -> OK, this one was my fault, but there is NO INFORMATION on how to set this or make it working, so i asked for further steps, didn't i?
There are several samples in the config file, you just set up a regexp to protect the parts that you don't want the editor to touch.
>And I repeat: FCKeditor is an HTML editor, if you try to use it with XML code then you have to do things carefully >and even then it might not work as you expect because nobody has tried that thing before.
It is indded a HTML Editor, but it supports XHTML and it support Custom Tags, right? So in fact, it should not confert ANY Tags from normal to lowercase, just because i do some editing - or am i wrong with this???
Sorry, but itshould make no difference in that behaviour of the FCK when editing texts with html- and costum texts included, while refering to your documentation custom tags are allowed!
Best regards, Marcus
BUG! Problems with Custom Tags!? :-(
Still hoping on further help, while the bugs still are there
(
Best regards, Marcus
RE: Problems with Custom Tags!? :-(