Comments (19)
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.
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.
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.
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.
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.
Are you using Chrome? If so, what does the Console say? (View -> Developer -> JavaScript Console)
from tinymce-rails-imageupload.
Also, does it work with the same configuration, but without uploadimage
in the plugin list or in the toolbar?
from tinymce-rails-imageupload.
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.
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.
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.
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.
okay, sounds good.
from tinymce-rails-imageupload.
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.
… imageupload/plugin.js
? Should be uploadimage/plugin.js
.
Other than that, might be related to the asset pipeline troubles
from tinymce-rails-imageupload.
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.
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.
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.
fixed it. thanks for being so responsive!
from tinymce-rails-imageupload.
Glad to hear you got it working.
from tinymce-rails-imageupload.
Related Issues (20)
- unable to upload the image HOT 3
- Maintainer wanted HOT 3
- Image not rendering in TinyMCE on model edit action only HOT 2
- It messes the absolute paths HOT 1
- POST \ GET request issues. HOT 2
- Image upload failed inside HTTPS site HOT 5
- Problem precompiling assets "Same file" error HOT 3
- Rails 4.2 doesnt return url HOT 2
- Carrierwave usage HOT 2
- Compiling with tinymce-rails config.tinymce.install = :copy breaks. HOT 2
- Wrong assets path HOT 1
- Same file issue HOT 3
- Where is the code for 4.0.17.beta.2? HOT 3
- RuntimeError: unknown file type HOT 4
- Rake Don't know how to build task 'assets:precompile:primary', (and fix...) HOT 1
- Conflict with chrome extensions HOT 1
- Question: is there any possibility to send model type/id to upload_file_url action ? HOT 1
- TypeScript rewrite HOT 3
- Support choose from images uploaded before HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinymce-rails-imageupload.