Coder Social home page Coder Social logo

Comments (19)

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

No idea. Do you get any errors in the web console?

When you say 'disappear', do you mean the entire editor disappears, and you get a regular textarea?

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

Disappears as in no field is displayed, not event a regular text field..
I am using tinymce-rails (4.1.3)

from tinymce-rails-imageupload.

rasool-sb avatar rasool-sb commented on June 18, 2024

Hi,
For disappearing the tinymce, there would be several reasons, for example, mistype, not installed the plugin properly or forget to remove the plugin after uninstalling, @bobbyworx in your case.., you are using third latest version of tinymce, for this version.. no need to execute this code..
tinyMCE.init({
selector: "textarea.tinymce",
menubar : false,
theme : "modern",
plugins: "uploadimage"
});```
by the way where did you mentioned this code ?? in your application.js ?? have you created tinymce.yml file in your "config" directory ?? if you have created tinymce.yml then no need to mention the above code in application.js file.,
Please check the plugins are correctly mention in the tinymce.yml as well as in the above code..!!

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

okay, I created a tinymce.yml file under config directory with the
following code:

theme: "modern"
toolbar1: bold italic | link uploadimage | undo redo | fontselect |
forecolor | code |
plugins:

  • uploadimage

view:

<%= f.text_area :offer_greeting, :value => offer_settings(@offer,
:offer_greeting), :class => "tinymce", :rows => 4, :cols => 120 %>

Problem is now, tinymce does not load at all. I am seeing only the default
text_area.

On Wed, Oct 1, 2014 at 6:09 PM, Rasool.SB [email protected] wrote:

Hi,
For disappearing the tinymce, there would be several reasons, for example,
mistype, not installed the plugin properly or forget to remove the plugin
after uninstalling, @bobbyworx https://github.com/bobbyworx in your
case.., you are using third latest version of tinymce, for this version..
no need to execute this code..
tinyMCE.init({
selector: "textarea.tinymce",
menubar : false,
theme : "modern",
plugins: "uploadimage"
});```
by the way where did you mentioned this code ?? in your application.js ??
have you created tinymce.yml file in your "config" directory ?? if you have
created tinymce.yml then no need to mention the above code in
application.js file.,
Please check the plugins are correctly mention in the tinymce.yml as well
as in the above code..!!


Reply to this email directly or view it on GitHub
#62 (comment)
.

Bogdan Popa

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024
<textarea class=​"tinymce" cols=​"120" id=​"offer_offer_greeting" name=​"offer[offer_greeting]​" rows=​"4">​</textarea>​

this shows on inspecting the text area

On Thu, Oct 2, 2014 at 10:13 AM, Bogdan Popa [email protected]
wrote:

okay, I created a tinymce.yml file under config directory with the
following code:

theme: "modern"
toolbar1: bold italic | link uploadimage | undo redo | fontselect |
forecolor | code |
plugins:

  • uploadimage

view:

<%= f.text_area :offer_greeting, :value => offer_settings(@offer,
:offer_greeting), :class => "tinymce", :rows => 4, :cols => 120 %>

Problem is now, tinymce does not load at all. I am seeing only the default
text_area.

On Wed, Oct 1, 2014 at 6:09 PM, Rasool.SB [email protected]
wrote:

Hi,
For disappearing the tinymce, there would be several reasons, for
example, mistype, not installed the plugin properly or forget to remove the
plugin after uninstalling, @bobbyworx https://github.com/bobbyworx in
your case.., you are using third latest version of tinymce, for this
version.. no need to execute this code..
tinyMCE.init({
selector: "textarea.tinymce",
menubar : false,
theme : "modern",
plugins: "uploadimage"
});```
by the way where did you mentioned this code ?? in your application.js ??
have you created tinymce.yml file in your "config" directory ?? if you have
created tinymce.yml then no need to mention the above code in
application.js file.,
Please check the plugins are correctly mention in the tinymce.yml as well
as in the above code..!!


Reply to this email directly or view it on GitHub
#62 (comment)
.

Bogdan Popa

Bogdan Popa

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

Are you using Chrome? If so, what does the Console say? (View -> Developer -> JavaScript Console)

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

Also, does it work with the same configuration, but without uploadimage in the plugin list or in the toolbar?

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

no, it does not..
I get 304 not modified from the console. Also, if it helps, this is how my partial looks like:

<%= tinymce_assets %>
...
<%= f.text_area :offer_greeting, :value => offer_settings(@offer, :offer_greeting), :class => "tinymce", :rows => 4, :cols => 120 %></br>
...
<% tinymce %>

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

Then I suggest you look at the documentation for TinyMCE and/or tinymce-rails, and get a working setup there before you try using this plugin.

I'm sorry, but I don't have time for hand-holding you through the installation and configuration of TinyMCE.

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

sorry, it does with this configuration:

toolbar:
  - styleselect | bold italic | undo redo
  - image | link
plugins:
  - image
  - link

only when I specify imageupload, it completely disappears.

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

If you can create a small demo app where this happens and upload somewhere, or send to me ([email protected]), I'll take a quick look at it.

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

okay, sounds good.

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

I've created the demo app, I'll send it to you any minute now, but maybe this error would help you:

ActionController::RoutingError (No route matches [GET] "/assets/tinymce/plugins/imageupload/plugin.js")

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

imageupload/plugin.js? Should be uploadimage/plugin.js.

Other than that, might be related to the asset pipeline troubles

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024
    config.assets.precompile += %w( tinymce/plugins/uploadimage/plugin.js tinymce/plugins/uploadimage/langs/ro.js )

ok so I have this in my app.rb file but I get the same error.
How can I specify the precompilation under public directory(as you mention in the docs)?

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

The point of using public is to avoid involving the asset pipeline at all, which means no precompilation. The asset pipeline won't touch anything there, and since TinyMCE doesn't understand/use the pipeline, involving it doesn't make any difference anyways.

A possible issue if you're using Rails 4 is that it doesn't generate non-digested versions of the assets, so you only get tinymce/plugins/uploadimage/plugin-<digest>.js, which TinyMCE won't find.

You could try by adding the gem non-stupid-digest-assets and see if that helps.

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

ok it shows now! thanks!

Got a bad response from the server

Is the error I got when uploading a picture but I guess there are issues related to this error already

from tinymce-rails-imageupload.

bobbyworx avatar bobbyworx commented on June 18, 2024

fixed it. thanks for being so responsive!

from tinymce-rails-imageupload.

PerfectlyNormal avatar PerfectlyNormal commented on June 18, 2024

Glad to hear you got it working.

from tinymce-rails-imageupload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.