Comments (8)
Can you paste your controller setup and form?
from cakephp-wysiwyg.
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.
Can you paste the exact error that is being output? And how did you install the plugin?
from cakephp-wysiwyg.
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.
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.
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.
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.
Once I wrapped the script in a JQuery document ready, it ran just fine.
from cakephp-wysiwyg.
Related Issues (11)
- wysiwyg helper HOT 4
- TinyMce bug with multiple text areas HOT 8
- a dependency not found HOT 2
- Choosing Ck editor has no effect HOT 2
- Documentation Typo HOT 1
- Trouble buffering JS HOT 1
- Wrong implementation of Helper API (CakePHP 2.1.2) HOT 1
- Unsupported operand types HOT 1
- Documentation typo HOT 1
- Does not work. Notice (8): Undefined index: model and Notice (8): Undefined index: field HOT 3
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 cakephp-wysiwyg.