Closed onaseef closed 12 years ago
I don't see any style tags in that html. Do you mean style attributes?
I did mean style attributes.
Sent from my iPhone
On Jan 24, 2012, at 9:05 PM, Gilbert reply@reply.github.com wrote:
I don't see any style tags in that html. Do you mean style attributes?
Reply to this email directly or view it on GitHub: https://github.com/onaseef/yomobi/issues/143#issuecomment-3645184
It works for me. I copied the content, not the html directly.
With the addition of the html editing button, and the move to target developers, I wonder if we should remove style stripping altogether. It would be annoying to have custom styles stripped whenever you paste text.
Is there a better editor than the one we're using that will allow us to strip all the HTML just from the pasted text?
Strip all html, as in no tags whatsoever?
Stripping html is not really a problem that wysiwygs try to address, though some do try to strip data for specific cases, such as word documents.
When the user pastes text into the WYSIWYG editor, I'd like to strip all the HTML, but just from the pasted text, minus the img tag, in case they copy and paste images into the WYSIWYG. It will help solve problems the users have when they paste. The goal is to make it was user friendly as possible.
More than one user has had issues with how things show up when they are pasted. They don't understand HTML, so they think the problem is with the WYSIWYG editor because they don't realize that by copying text from a web page, they're also copying html tags, etc.
As we've discussed before, the browser doesn't give the info on what text has been pasted and what hasn't. To do this manually would be a very large effort.
Yes, I know we discussed it before, that's why I asked if there's a better editor out there than the one we're using.
The style tag should be stripped on all items pasted in pages. Here's some html. When I paste it, it doesn't strip the -styles- tag.
Copy the html below as is (without going into edit mode), then paste it into a custom page and look at the html.
Served with chips & salsa, and with your choice of french hoagie, whole wheat hippie bun or ciabatta bread.
(Indicates Vegetarian)
Insalata Caprese Sandwich (Served Hot).......................... 5.95
Mozzarella, tomato, onion and fresh basil sprinked with capers, dressed with extra virgin olive oil and balsamic vinaigrette.
Monkey Nest Special
(Served Hot)........................... 6.95
Grilled chicken breast dressed with fresh basil, garlic, cranberries, tomato, red onion and capers, in a honey mustard dressing
Tuna-Provolone Sandwich(Served Hot)........................... 6.50
Tuna salad in a creamy feta cheese dressing, made with dill and served with tomato, lettuce, red onion and provolone cheese
Hummus Peace Sandwich
Pastrami Sandwich
(Served Hot)........................... 6.95
Pastrami, Swiss cheese, sauerkraut, Dijon mustard and horseradish
Spicy Roast Beef Sandwich(Served Hot)........................... 7.50
Roast beef, Swiss cheese, tomato, lettuce, red onion, mayonnaise, horseradish and red pepper sauce
Turkey-Provolone Sandwich
............................................. 6.95
Turkey breast, provolone cheese, tomato, lettuce, red onion, mayonnaise and Dijon mustard
Italian Panini
(Served Hot)........................... 6.50
Sliced Mozzarella, tomato, fresh basil and prosciutto, dressed in extra virgin olive oil
Italian Spinach Panini
............................................ 6.50/o:p
Fresh spinach, sliced mozzarella, sliced black olives, sprinkle of oregano, garlic and parsley, with balsamic vinegar and extra virgin olive oil
Kid’s Grill Cheese
(Served Hot)........................3.50
Grilled cheddar cheese and white bread