If I click "Source" and enter:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
</head>
<body>
helloworld
</body>
</html>
then save the results, and view it again - by clicking "Source" again, I get:
<p>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
helloworld
</p>
The <html>, <head> and <body> tags are all being removed.
I'm using 2.4.3 with Plone (Python).
Wed, 12/19/2007 - 00:47
#1
Re: <hmtl> tags removed
I think this will work to get FCK to keep those tags unless fck is just configured to take these out by default:
You need to make sure this is in your fckeditor/fckconfig.js
Re: <hmtl> tags removed
Re: <hmtl> tags removed
Re: <hmtl> tags removed
Re: <hmtl> tags removed
Thanks for the above suggestion:
the following options need to be set in fckconfig.js:
Flash disappearing in firefox after editing pages due to stipping of <object> tag fix:
FCKConfig.ProtectedSource.Add( /<object[\s|\S]+?<\/object>/gi ) ; // Protects <OBJECT> tags although flash will now not display in the editor.
The line of code below was also added as a suggestion from somebody who was having trouble with style tags being stripped i have left this in also:
FCKConfig.ProtectedSource.Add( /<style[\s\S]*?\/style>/gi ) ; // Protects <STYLE> tags.
The editor needs to be set to allow full page editing as suggested above this fixed the problems i was having with html body and head tags disappearing:
FCKConfig.FullPage = true ;
This line of code was also added - this did not fix the problem till the above full page option was set:
FCKConfig.ProtectedTags = 'html|head|body';
Ive added/edited all of these lines of code to the above and all seems to work fine now for editing of a complete html page with no specially designated editable text areas.
Hope this helps someone and saves them the time it has taken me to figure out this problem. Many thanks FCK for your work on this project please could these issues be addressed in the new version or at least commented as a fix in the fckconfig.js file for people who wish to use the editor to edit a complete html page and still keep these most important tags. Hopefully i have not missed anything if so please suggest.
Re: <hmtl> tags removed
I have implemented the previous configuration options in my fckconfig.js file in order to allow full page editing, however it still doesn't work. my <html>, <head>, and <body> tags are are all stripped when I save my file.
has anybody else had this much trouble?
Re: <hmtl> tags removed
q.1 Can FCKEditor allow me to specify a list of allowed/restricted tags? I have invested lot of time searching net but did not got any suc cess.
q.2 Can I get a message when user enters any restricted tag saying that Sorry this tag is not allowed.
Hope to get a quick reply as its urgent for me.
How to add remove tag functionality in new plugin
Currrently i created new plugin for adding the new button In tool bar. now i am able to add new button in CKEditor.
if you will observe bold, italic button functionality then you will find that if i will select some text and then click on bold button then bold tag will come surround the text and if again i will select same text and again i will click on same button then that tag will removed from source.
so same functionality i want to implement in my case. currently i am able to add tag surrounding the text area but not able to remove..
so i want to add same bold type functionality in my case.. so please some one suggest me. how to add this functionality and what should i do for adding this functionality?????
i am creating button for <no-Lexicon></no-Lexicon> tag.
many years between posts :D
many years between posts :D