Code Monkey home page Code Monkey logo

Comments (8)

josegonzalez avatar josegonzalez commented on July 17, 2024

Can you paste your controller setup and form?

from cakephp-wysiwyg.

 avatar commented on July 17, 2024

Install with composer

Path webroot/js/tinymce

Controller setup

public $helpers = array('Wysiwyg.Tinymce’);

Form setup in view

echo $this->Tinymce->input(“Products.description");

On Dec 28, 2013, at 5:49 PM, Jose Diaz-Gonzalez [email protected] wrote:

Can you paste your controller setup and form?


Reply to this email directly or view it on GitHub.

from cakephp-wysiwyg.

josegonzalez avatar josegonzalez commented on July 17, 2024

Can you paste the exact error that is being output? And how did you install the plugin?

from cakephp-wysiwyg.

 avatar commented on July 17, 2024

I installed with composer

{
"config": {
"vendor-dir": "Vendor"
},
"require": {
"mjohnson/uploader": "4.*",
"josegonzalez/cakephp-wysiwyg": "dev-master"
}

}

On Dec 28, 2013, at 6:44 PM, Jose Diaz-Gonzalez [email protected] wrote:

Can you paste the exact error that is being output? And how did you install the plugin?


Reply to this email directly or view it on GitHub.

from cakephp-wysiwyg.

josegonzalez avatar josegonzalez commented on July 17, 2024

Is this a js error? A screenshot would help.

On Sat, Dec 28, 2013 at 7:43 PM, Daren [email protected] wrote:

I installed with composer

{
"config": {
"vendor-dir": "Vendor"
},
"require": {
"mjohnson/uploader": "4.*",
"josegonzalez/cakephp-wysiwyg": "dev-master"
}

}

On Dec 28, 2013, at 6:44 PM, Jose Diaz-Gonzalez [email protected]
wrote:

Can you paste the exact error that is being output? And how did you
install the plugin?


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31308406
.

from cakephp-wysiwyg.

 avatar commented on July 17, 2024

No cakephp error shows and the editor does not display, it is a js error.

If I place the code in the view.

Html->script(array('tinymce/tinymce.min.js')); ?> <script type="text/javascript"> tinymce.init({ selector: "textarea", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" }); </script>

The editor displays fine with no error, but with the helper it won’t load.

On Dec 28, 2013, at 7:59 PM, Jose Diaz-Gonzalez [email protected] wrote:

Is this a js error? A screenshot would help.

On Sat, Dec 28, 2013 at 7:43 PM, Daren [email protected] wrote:

I installed with composer

{
"config": {
"vendor-dir": "Vendor"
},
"require": {
"mjohnson/uploader": "4.*",
"josegonzalez/cakephp-wysiwyg": "dev-master"
}

}

On Dec 28, 2013, at 6:44 PM, Jose Diaz-Gonzalez [email protected]
wrote:

Can you paste the exact error that is being output? And how did you
install the plugin?


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31308406
.


Reply to this email directly or view it on GitHub.

from cakephp-wysiwyg.

 avatar commented on July 17, 2024

Here is a debug of pr($options); pr($script); from the helper

On Dec 28, 2013, at 8:08 PM, Daren [email protected] wrote:

No cakephp error shows and the editor does not display, it is a js error.

If I place the code in the view.

Html->script(array('tinymce/tinymce.min.js')); ?> <script type="text/javascript"> tinymce.init({ selector: "textarea", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" }); </script>

The editor displays fine with no error, but with the helper it won’t load.

<Screen Shot 2013-12-28 at 8.05.59 PM.png>
On Dec 28, 2013, at 7:59 PM, Jose Diaz-Gonzalez [email protected] wrote:

Is this a js error? A screenshot would help.

On Sat, Dec 28, 2013 at 7:43 PM, Daren [email protected] wrote:

I installed with composer

{
"config": {
"vendor-dir": "Vendor"
},
"require": {
"mjohnson/uploader": "4.*",
"josegonzalez/cakephp-wysiwyg": "dev-master"
}

}

On Dec 28, 2013, at 6:44 PM, Jose Diaz-Gonzalez [email protected]
wrote:

Can you paste the exact error that is being output? And how did you
install the plugin?


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31308406
.


Reply to this email directly or view it on GitHub.

from cakephp-wysiwyg.

slamkajs avatar slamkajs commented on July 17, 2024

Once I wrapped the script in a JQuery document ready, it ran just fine.

from cakephp-wysiwyg.

Related Issues (11)

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.