• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Yui txt editor

#1
Hi,

I've been using the yahoo editor http://developer.yahoo.com/yui/examples/editor/toolbar_editor.html implanting it into our homepage project which is huge and detailed but i have issues with it :/ the editor is great in term of functions.

The YUI editor doesn't remove html codes, let say if you copy and past an article from somewhere else and past it in the YUI editor, the spacing and paragraphs will be distorted and not looking right.

This doesn't happen with the editor used for VB and Xenforo, which is the same, if a member copy/past txt from another site into let say Xenforo editor even if the setting is set to "full WYSIWYG editing", it works fine but with Yui editor it doesn't.

Is this an editor issue or is this a bug that can be fixed?
 
#3
It's not a bug, though it can be mildly annoying. You could add a button to the toolbar to switch to plain text view[1] if you want to remove all formatting, or write your own filter.

[1] http://developer.yahoo.com/yui/examples/editor/switch_editor.html
Ya, i know about that Toggle but it removes everything, colors, size etc.. :/ So i guess it is the editor itself, some editors just automatically remove any html like <br> but the YUI doesn't ?
 

Jason

Well-known member
#4
Ya, i know about that Toggle but it removes everything, colors, size etc.. :/ So i guess it is the editor itself, some editors just automatically remove any html like <br> but the YUI doesn't ?
It's a function of the editor, yes; although, you can always write a filter (plugin/extension) that strips tags you don't want.