Opened 10 years ago

Closed 10 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 10 years ago by Dave

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.

comment:2 Changed 10 years ago by Artur Formella

Why not edit in SOURCE mode?

If you want just plain text you don't have to use CKEditor.

comment:3 in reply to:  2 Changed 10 years ago by Dave

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 10 years ago by Artur Formella

Resolution: invalid
Status: newclosed

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
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy