spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
814 stars 257 forks source link

Automagically use Rails' application layout around content #149

Closed crosebrugh closed 10 years ago

crosebrugh commented 10 years ago

I'd like all content entered to be within the context of our app's default layout but not have the layout HTML visible to the user.

I've poked around using the tinymce template feature but it doesn't look like it covers this use-case.

Any hints/pointers will be appreciated.

Thanks.

spohlenz commented 10 years ago

Not sure how possible this is, but I'd recommend looking at the noneditable and template plugins as a possible starting point, as well as the TinyMCE forums.

crosebrugh commented 10 years ago

Nice pointer to the noneditable plugin. It worked but ended up as an overkill for my purpose. Ended up just adding

content_css: '/assets/application.css?' + new Date().getTime()

to the tinymce options.

Thanks!