Plugin Author
Josh
(@josh401)
Thank you very much for your kind words.. and thank you for the rating!
Regarding your issue… if you mean normal space bar presses… then yes, these will get stripped out when switching between editors.
I get around this by using a span tag.. and setting a margin-left property. This effectively gives me the spacing I need… and is also safe from the editor when switching views or saving drafts.
If you would like to contact me personally.. we can continue identifying your issues.. and begin fixing them.
You can reach me here:
http://joshlobe.com/contact-me/
Please reference this thread when you send your message.
Thanks again!
Thank you for your kind words and your great review.
The problem you are experiencing has to do with the way HTML code interprets white space inside a document, not just with the more specific tinymce editor.
I think this article might be a good first read about the topic. Let us know if we can be of further assistance.
Best,
Marv
Thread Starter
danwpc
(@danwpc)
Thanks guys. As ever, you’re on top of the comments and reviews. I’ll check out the article, Marv. Btw, I neglected to put back ticks on my parenthetical above. It should have read, “… Eg. if I try to add spaces (either using the spacebar or adding
).” But that may not effect your response. I’ll read the article.
Thread Starter
danwpc
(@danwpc)
Thanks guys. As ever, you’re on top of the comments and reviews. I’ll check out the article, Marv. Btw, I neglected to put back ticks on my parenthetical above. It should have read, “… Eg. if I try to add spaces (either using the spacebar or adding
).” But that may not effect your response. I’ll read the article.
Plugin Author
Josh
(@josh401)
No worries, Dan.
Well, using the spacebar or the
entity is not considered best practices for inserting white space.
As I mentioned above, this is typically done using a <span>
tag, along with some margin or padding. Using the html space entity, may not make things appear consistent across browsers. So in one browser, you end up with “prime rib”, and in the other you have “spaghetti soup”.
The Ultimate Tinymce plugin includes a button for inserting html5 tags. In this button, you can choose the span tag, and then enter your css rule for defining margins or paddings. This is the preferred method for using white space effectively.
I hope this helps.