Opened 16 years ago
Closed 16 years ago
#3381 closed New Feature (invalid)
Don't force tags
Reported by: | Dave | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Everytime we or a user creates content with your editor it gets wrapped in a tag. Even going into the html editor and deleting the tag still results in a tag. Sometimes we just want plain text. Maybe a plain text button (checkbox?) like the source button is needed?
Example:
I want: Hello World!
I get: <p>Hello World!</p> ...even if I delete the tags in the source editor.
Change History (4)
comment:1 Changed 16 years ago by
comment:2 follow-up: 3 Changed 16 years ago by
Why not edit in SOURCE mode?
If you want just plain text you don't have to use CKEditor.
comment:3 Changed 16 years ago by
Replying to arczi:
Why not edit in SOURCE mode?
I've tried that, the editor outputs the text with a p tag even if I manually strip them out. Possibly a bug.
If you want just plain text you don't have to use CKEditor.
True. But I'm building a generic interface that serves a range of purposes within the application. Sometimes want plain, sometimes I want the option to format but I don't know which case will be when because it's up to the user. A simple example:
I put in a heading: Hamster
If I just want plain text I could just use a textfield, but since I can't be sure that I just want plain text I use the editor. For example in most cases a plain text "Hamster" might be great, but what if they want to do "Great <b>BIG</b> hamsters!" now I need the editor... but I still don't want the p tags. See?
comment:4 Changed 16 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Current version of FCKeditor and CKEditor 3 don't change content typed in source mode. Steps to do that:
- open FCKeditor / CKEditor
- Click Source button
- Insert content
- Click Submit
The reason this is a problem incidentally is that usually the tagged content ends up inside some other area of HTML. This messes up the css which has to go back to the developer for correction - it's just a pain in the ass.
In the normal WYSIWYG then by all means go crazy with the tags but if someone edits the source code then you should only output what they ask for.