Developer forum

Forum » Development » URGENT - Validation in FCK Editor

URGENT - Validation in FCK Editor


Reply

Hello there,


 


We have published documents from IntraNote to DW. These documents has now been converted to "standard" Dynamicweb pages. When editing one of these pages, contents disappear on save.


 


We have been told that this is because of invalid HTML in the documents / pages, which might be correct.


 


This is though a rather large problem because the customer has around 1900 of these pages.


 


Is it possible to configure the editor to avoid this validation? i suppose the HTML is validated against a scheme?


 


Kind regards


Morten Pedersen


Replies

 
Nicolai Høeg Pedersen
Reply
mop@intranote.com wrote:


Hello there,




 




We have published documents from IntraNote to DW. These documents has now been converted to "standard" Dynamicweb pages. When editing one of these pages, contents disappear on save.




 




We have been told that this is because of invalid HTML in the documents / pages, which might be correct.




 




This is though a rather large problem because the customer has around 1900 of these pages.




 




Is it possible to configure the editor to avoid this validation? i suppose the HTML is validated against a scheme?




 




Kind regards




Morten Pedersen





Hi Morten


 


It can not be disabled as Dynamicweb is right now - the editor handles it and we do not control the editor because it is a bought component. What browser is used for editing? And do you by any chance have a piece of HTML that Dynamicweb would delete pieces from?

 
Reply

Hi there,




 




You can see the text here:




 




http://nytsite/Politik/Byråd/Reglement%20for%20spørgetid.aspx




 




(Add             192.66.115.215  nytsite                 in Hosts file)




  




The correct page is here: http://www.esbjergkommune.dk/Default.aspx?ID=2432









Explorer 7







Kind regards




Morten

 
Nicolai Høeg Pedersen
Reply

Hi Morten


 


It is broken HTML and I'm afraid I cant do anything about it...


 


If you look at the content its really weird:






 ...Snip













 


The editor does not have a configuration to leave this alone. It uses the dom which brakes on invalid html.


 


A wild shot woulde be to add this line  to configuration:


FCKConfig.ProtectedTags = 'TABLE|CUSTOM' ;


Can be found in /Admin/Editor/fckconfig.js


http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProtectedTags


 

 
Reply
NP wrote:


Hi Morten




 




It is broken HTML and I'm afraid I cant do anything about it...




 




If you look at the content its really weird:







































 




The editor does not have a configuration to leave this alone. It uses the dom which brakes on invalid html.




 




A wild shot woulde be to add this line  to configuration:




FCKConfig.ProtectedTags = 'TABLE|CUSTOM' ;




Can be found in /Admin/Editor/fckconfig.js




http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProtectedTags




 



HI again,


 


It seems like it works with the "Standard" editor, but that one has a limit of how much data it can handle. Are there any possibilities of expanding that limit?


 


Thanks in advance.

 
Nicolai Høeg Pedersen
Reply

Dont think so - the limit is 100000 bytes which is something the component has as problem.

 
Reply
NP wrote:


Dont think so - the limit is 100000 bytes which is something the component has as problem.





Thanks.


 


Have you had experiences implementing another editor, or do you know if some other partner has implemented one ?


 


Kind regards


Morten

 
Nicolai Høeg Pedersen
Reply
mop@intranote.com wrote:

NP wrote:





Dont think so - the limit is 100000 bytes which is something the component has as problem.










Thanks.




 




Have you had experiences implementing another editor, or do you know if some other partner has implemented one ?




 




Kind regards




Morten





Hi Morten


 


You cannot implement your own editor - nor do I think it would help you. Broken HTML is destined to give you problems. Better write some code that would find or fix the broken HTML.

 

You must be logged in to post in the forum