PerfectlyNormal / tinymce-rails-imageupload

Image upload plugin for TinyMCE and Rails with the asset pipeline
MIT License
149 stars 153 forks source link

cant get it to work #9

Closed syllogismus closed 12 years ago

syllogismus commented 12 years ago

only the regular insert-image button shows. does anyone have a working setup? thx

i have the yml file, i tried via:

<%= tinymce_assets %> <%= tinymce :theme => "advanced", :plugins=> "uploadimage" %>

also via:

<script type="text/javascript">
tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  editor_selector : "mceEditor",
  plugins : "uploadimage"
});

but it doesnt show...anyone please? thx

PerfectlyNormal commented 12 years ago

As the README states, you have to define theme_advanced_buttonsX in your tinyMCE.init call with 'uploadimage' somewhere in there.

For example:

<script type="text/javascript">
tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  editor_selector : "mceEditor",
  plugins : "uploadimage",
  theme_advanced_buttons1 : "bold,italic,underline,separator,bullist,numlist,separator,undo,redo,separator,uploadimage"
});
syllogismus commented 12 years ago

ok, sorry my bad. thx for clarification!