Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andria Duncan 14 posts 36 karma points
    Jun 13, 2010 @ 04:44
    Andria Duncan
    0

    the tinyMCE config file - or + ??

    I swear, I've tried to find the answer to this, and I just can't find anything specific, so I figured I'd ask.  In the tinyMceConfig.config file, where it lists "validElements" -- I've read the wiki page about this, but what is said, on the wiki page, to be the "default", is not what appears in my own tinyMceConfig.config -- and what I most need to know is -- do the - and + denote which tags are to left alone and which to be stripped out?  (- for the ones to be stripped, + for the ones to be left alone?)

    This appears to be the case, but I can't find that actually specifically indicated anywhere, so I figured I should ask instead of assuming something I don't know for sure.

    Specifically, I really want to be able to add my own "style" tags to the HTML sometimes, but the silly editor keeps stripping them out, and it's irking the you know what out of me.  Basically I want it to leave strictly alone any HTML I might think to enter; if I didn't know the code I wouldn't bother entering it.  It appears, in my own tinyMceConfig.config, that most HTML has a - in front of it, thereby disallowing it.  I'd like to be able to change them all to plus signs, if that is in fact the way to get it leave my code alone.

    Thx!

    Andria

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Jun 13, 2010 @ 16:59
    Nik Wahlberg
    0

    Andria, 

    This Wiki is pretty thorough with the validElements property and what characters denote what. Check it out. If you have any questions, post 'em back here! 

    http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements

    Good luck.

    -- Nik

  • Andria Duncan 14 posts 36 karma points
    Jun 13, 2010 @ 20:42
    Andria Duncan
    0

    Well, I read that whole page several times; gleaned a few tidbits, but came away somewhat more confused than I was before -- I don't know if it's a language or terminology barrier, but " + Makes the element open if no child nodes exists" -- that's about as clear as mud!!  What does that mean -- "open" -- in this context?  I can't puzzle it out to save my life.

    But I went ahead and did what I thought might fix it, I copied it all into my editor, and did a global replace on all those - and changed them to +  -- the results were somewhat unexpected, but acceptable -- it started showing me the dark background my site actually has, and it centered everything.  the dark background is good, because I then went and read http://our.umbraco.org/forum/using/ui-questions/3377-TinyMCE-Formats-Drop-Down# and fixed various CSS settings (for heading styles, which are colored and therefore ought to be on a dark bg), and that got it back to left-aligned.  That was a really helpful forum post, mentioned just above; I don't have enough karma yet to vote for anything, but I'd definitely vote for that one, if I could.  :)

    But I still haven't puzzled out a means of just entering my own HTML, whenever and wherever, and having it left alone -- is there any kind of "HTML editor extension" for Umbraco?  This thing is so code-oriented, that would be really helpful.

    Thx!

    Andria

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Jun 14, 2010 @ 03:45
    Nik Wahlberg
    0

    Hi Andria,

    the short (and probably obvious) answer is - use the Textbox Multiple data type and then on out put set disable-output-escaping to false. This may not be the ideal situation i you still require WISYWIG editing at the same time, but will give you the most control over the HTML. Having said that, I have used Tiny on several projects without any issues. The trick is to stick to xHTML strict and you should be OK. 

    Other editors out there that you might want to check out would include FCK Editor. I have used the in the past on other platforms, so I am not sure how it would do with .Net and Umbraco. Might be worth a shot. 

    HTH,
    Nik

  • Andria Duncan 14 posts 36 karma points
    Jun 14, 2010 @ 04:37
    Andria Duncan
    0

    Hmm, those are all good ideas.  I don't necessarily require wysiwyg; I've been writing my own HTML in Homesite (the old one by Allaire!) for 10 yrs, but I had gotten accustomed to tinyMCE in Joomla -- which seems to offer a lot more flexibility than the tinyMCE in Umbraco, so maybe I need to inspect the tinyMCE setup in Joomla with a magnifying glass to figure out how to setup this one the same way.  I did get those heading styles into the editor in a dropdown, by following the instructions given in that post I referenced, and that helps a lot, doing a list selection instead of having to write the code -- the fact that I can do it doesn't mean I want to spend the time to do it.  :)  But when you click that "HTML" button and it puts you into a straight text editor -- if you enter HTML in there, it should leave that code alone, not go stripping it out -- that's the major thing I hate about Wordpress, I can't put in any HTML and expect it to stay put.

    I've used FCKeditor in another CMS, but I'd say it's only passable as an alternative, not sparkling, but functional.  But I have to be honest, I wouldn't have a clue how to install anything to Umbraco (or much of anything else in ASP.NET) without a "package," some kind of installation program/process -- I'm not averse to manual installs, if there is documentation for every step of the process.  Unfortunately one of the downsides to open source programs is that the docs may be anything from sketchy to non-existent -- with some (few) lovely exceptions, of course.  Add to my general ignorance of ASP.NET the fact that I'm on shared hosting, so don't have a lot of access to OS-level stuff -- I have the same problem with Linux though, since my Joomla sites are all on shared hosting too; I've just learned to work around that particular limitation.

    There's another editor I've used in Joomla, which is awesome, but it's called "JCE" and now that I think on it, I think that stands for "Joomla content editor" so I guess that's not much use in umbraco.  :)  Too bad, it's really outstanding.

    Thanks for the ideas; I think that textbox-multiple might be a good option; I'll give it a shot and see how it goes.

    Thx!

    Andria

Please Sign in or register to post replies

Write your reply to:

Draft