In rails, tinymce's toolbar isn't showing










0















I have installed the tinymce gem. My tinymce can process the html tags but the toolbar isn't coming. Here is my view file's code:



 <%= tinymce_assets %>
<div class="container">
<%= form_for(@product) do |f| %>
<table summary="Product for fields" class="table table-striped">
<tr>
<th>Title</th>
<td><%= f.text_field(:title) %></td>
</tr>
<tr>
<th>Description</th>
<!--td><%= f.text_field(:description) %></td-->
<td><%= f.text_area :description, :class => "tinymce", :rows => 2, :cols => 120 %></td>
</tr>

<tr>
<th>Price</th>
<td><%= f.text_field(:price) %></td>
</tr>

</table>

<div class="form-buttons">
<%= f.submit "Create Products", :class => 'btn btn-primary pull-right' %>
</div>
<% end %>

<%= link_to 'Back', products_path, :class => 'btn btn-info' %>
</div>
<%= tinymce %>


Here is my configuration file ( I mean tinymce.yml):



theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_statusbar_location: bottom
theme_advanced_buttons3_add:
- tablecontrols
- fullscreen
menubar: false
toolbar:
[ styleselect | bold italic | link image | code ]

plugins:
- link
- image


and here is the application.js file



$(document).on('ready page:load', function () 

if (typeof tinyMCE != 'undefined')
alert("Hello! I am an alert box!!");
tinyMCE.init( link image );
else
setTimeout(arguments.callee, 50);

);


And while I am running this code the browser console is showing the following error : ReferenceError: Can't find variable: TinyMCERails. And I cannot find out the solution.










share|improve this question
























  • followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

    – Nithin
    Nov 14 '18 at 9:02











  • yeah. followed that one.

    – Tazwar Utshas
    Nov 14 '18 at 13:24















0















I have installed the tinymce gem. My tinymce can process the html tags but the toolbar isn't coming. Here is my view file's code:



 <%= tinymce_assets %>
<div class="container">
<%= form_for(@product) do |f| %>
<table summary="Product for fields" class="table table-striped">
<tr>
<th>Title</th>
<td><%= f.text_field(:title) %></td>
</tr>
<tr>
<th>Description</th>
<!--td><%= f.text_field(:description) %></td-->
<td><%= f.text_area :description, :class => "tinymce", :rows => 2, :cols => 120 %></td>
</tr>

<tr>
<th>Price</th>
<td><%= f.text_field(:price) %></td>
</tr>

</table>

<div class="form-buttons">
<%= f.submit "Create Products", :class => 'btn btn-primary pull-right' %>
</div>
<% end %>

<%= link_to 'Back', products_path, :class => 'btn btn-info' %>
</div>
<%= tinymce %>


Here is my configuration file ( I mean tinymce.yml):



theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_statusbar_location: bottom
theme_advanced_buttons3_add:
- tablecontrols
- fullscreen
menubar: false
toolbar:
[ styleselect | bold italic | link image | code ]

plugins:
- link
- image


and here is the application.js file



$(document).on('ready page:load', function () 

if (typeof tinyMCE != 'undefined')
alert("Hello! I am an alert box!!");
tinyMCE.init( link image );
else
setTimeout(arguments.callee, 50);

);


And while I am running this code the browser console is showing the following error : ReferenceError: Can't find variable: TinyMCERails. And I cannot find out the solution.










share|improve this question
























  • followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

    – Nithin
    Nov 14 '18 at 9:02











  • yeah. followed that one.

    – Tazwar Utshas
    Nov 14 '18 at 13:24













0












0








0








I have installed the tinymce gem. My tinymce can process the html tags but the toolbar isn't coming. Here is my view file's code:



 <%= tinymce_assets %>
<div class="container">
<%= form_for(@product) do |f| %>
<table summary="Product for fields" class="table table-striped">
<tr>
<th>Title</th>
<td><%= f.text_field(:title) %></td>
</tr>
<tr>
<th>Description</th>
<!--td><%= f.text_field(:description) %></td-->
<td><%= f.text_area :description, :class => "tinymce", :rows => 2, :cols => 120 %></td>
</tr>

<tr>
<th>Price</th>
<td><%= f.text_field(:price) %></td>
</tr>

</table>

<div class="form-buttons">
<%= f.submit "Create Products", :class => 'btn btn-primary pull-right' %>
</div>
<% end %>

<%= link_to 'Back', products_path, :class => 'btn btn-info' %>
</div>
<%= tinymce %>


Here is my configuration file ( I mean tinymce.yml):



theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_statusbar_location: bottom
theme_advanced_buttons3_add:
- tablecontrols
- fullscreen
menubar: false
toolbar:
[ styleselect | bold italic | link image | code ]

plugins:
- link
- image


and here is the application.js file



$(document).on('ready page:load', function () 

if (typeof tinyMCE != 'undefined')
alert("Hello! I am an alert box!!");
tinyMCE.init( link image );
else
setTimeout(arguments.callee, 50);

);


And while I am running this code the browser console is showing the following error : ReferenceError: Can't find variable: TinyMCERails. And I cannot find out the solution.










share|improve this question
















I have installed the tinymce gem. My tinymce can process the html tags but the toolbar isn't coming. Here is my view file's code:



 <%= tinymce_assets %>
<div class="container">
<%= form_for(@product) do |f| %>
<table summary="Product for fields" class="table table-striped">
<tr>
<th>Title</th>
<td><%= f.text_field(:title) %></td>
</tr>
<tr>
<th>Description</th>
<!--td><%= f.text_field(:description) %></td-->
<td><%= f.text_area :description, :class => "tinymce", :rows => 2, :cols => 120 %></td>
</tr>

<tr>
<th>Price</th>
<td><%= f.text_field(:price) %></td>
</tr>

</table>

<div class="form-buttons">
<%= f.submit "Create Products", :class => 'btn btn-primary pull-right' %>
</div>
<% end %>

<%= link_to 'Back', products_path, :class => 'btn btn-info' %>
</div>
<%= tinymce %>


Here is my configuration file ( I mean tinymce.yml):



theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_statusbar_location: bottom
theme_advanced_buttons3_add:
- tablecontrols
- fullscreen
menubar: false
toolbar:
[ styleselect | bold italic | link image | code ]

plugins:
- link
- image


and here is the application.js file



$(document).on('ready page:load', function () 

if (typeof tinyMCE != 'undefined')
alert("Hello! I am an alert box!!");
tinyMCE.init( link image );
else
setTimeout(arguments.callee, 50);

);


And while I am running this code the browser console is showing the following error : ReferenceError: Can't find variable: TinyMCERails. And I cannot find out the solution.







ruby-on-rails tinymce toolbar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 5:20







Tazwar Utshas

















asked Nov 14 '18 at 7:44









Tazwar UtshasTazwar Utshas

336516




336516












  • followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

    – Nithin
    Nov 14 '18 at 9:02











  • yeah. followed that one.

    – Tazwar Utshas
    Nov 14 '18 at 13:24

















  • followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

    – Nithin
    Nov 14 '18 at 9:02











  • yeah. followed that one.

    – Tazwar Utshas
    Nov 14 '18 at 13:24
















followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

– Nithin
Nov 14 '18 at 9:02





followed ReadMe github.com/spohlenz/tinymce-rails to integrate?

– Nithin
Nov 14 '18 at 9:02













yeah. followed that one.

– Tazwar Utshas
Nov 14 '18 at 13:24





yeah. followed that one.

– Tazwar Utshas
Nov 14 '18 at 13:24












1 Answer
1






active

oldest

votes


















0














Ok, the problem was if we use that configuration file, we cannot use the application.js file too. So, just deleting that application.js file solved the problem for me.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295248%2fin-rails-tinymces-toolbar-isnt-showing%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Ok, the problem was if we use that configuration file, we cannot use the application.js file too. So, just deleting that application.js file solved the problem for me.






    share|improve this answer



























      0














      Ok, the problem was if we use that configuration file, we cannot use the application.js file too. So, just deleting that application.js file solved the problem for me.






      share|improve this answer

























        0












        0








        0







        Ok, the problem was if we use that configuration file, we cannot use the application.js file too. So, just deleting that application.js file solved the problem for me.






        share|improve this answer













        Ok, the problem was if we use that configuration file, we cannot use the application.js file too. So, just deleting that application.js file solved the problem for me.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 '18 at 8:37









        Tazwar UtshasTazwar Utshas

        336516




        336516





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295248%2fin-rails-tinymces-toolbar-isnt-showing%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo