Opened 12 years ago
Last modified 12 years ago
#9306 confirmed New Feature
Reusable removeFormat command
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
Currently removeFormat command may be applied only to the selection inside the editor. Thus, it's useless elsewhere - e.g. on paste.
removeformat
plugin should expose command that by default is applied to the selection, but may be also to given range.
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Status: | new → confirmed |
---|
In short it would be nice to have something that will remove inline styles for example but leave the tags structure untouched. Good idea.
Pasteformword with removeStyles configuration options set to true does this but unfortunately only on content pasted from word
I would also consider adding new config option similar to
forcePasteAsPlainText
. I saw users asking for something less brutal and this seems right that there's no transition between pasting as plain text and normal pasting.There's unclear thing - which part of the code should trigger filtering? Removeformat plugin does quite similar job to hmtlTextification from clipboard plugin. If one of them will get few configuration options, then they may need deeper refactoring to isolate the common part. However, removeformat works on real DOM, when htmlTextification on input data. Worth considering if we need this difference.