Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Clear formatting button #138

Open
flyingL123 opened this issue Mar 21, 2014 · 1 comment
Open

Clear formatting button #138

flyingL123 opened this issue Mar 21, 2014 · 1 comment

Comments

@flyingL123
Copy link

Is there a way to clear formatting when content is pasted into the wysiwyg editor? Sometimes my users paste in content, then edit it from there. I would like their initial paste of content to be format free.

Similarly, is there a way to include a "clear formatting" button, which will clear the formatting from anything currently in the editor?

steveathon referenced this issue in steveathon/bootstrap-wysiwyg Apr 28, 2014
…and #136

* Created examples
	- Basic (no toolbar)
	- Simple Toolbar
	- Clear formatting button as per request #138
* Moved layout to css/ src/ js/
* Added :focus support as per request #141
* Validated bower.json as per request #134 (Valid JSON)
@steveathon
Copy link

I implemented this in the above commit with the following:

                <a class="btn btn-default" data-edit="clearformat"
                    title="Clear Formatting" onClick="$('#editor').html($('#editor').text());"><i class='glyphicon glyphicon-fire'></i>
                </a>

Steve.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants