Giter Club home page Giter Club logo

statamic-tinymce-cloud's People

Contributors

martyf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

statamic-tinymce-cloud's Issues

Configuration Error

Bug description

Add a default configuration option and save. When trying to save this error appears.

Screenshot 2022-12-19 at 9 58 41 am

Steps to reproduce

Create a new default configuration option and save

Environment and versions

Statamic 3.3.60 Pro
Laravel 8.83.27
PHP 8.1.9

Additional details

No response

Error loading config page

I'm getting an error on fresh install Statamic v3 when hitting TinyMCE Cloud menu item, pictured below:
image

JSON Configuration Issues

Bug description

v1.0.3
Cannot add valid JSON to Configurations Default and have it pass.

Workaround has been to comment out validation in ConfigurationsDefault.php.

The editor appears as assigned in Blueprints.

v1 screenshot of workaround

Screen Shot 2022-09-06 at 5 45 14 pm

...

v2.0.1
Cannot add valid JSON to Configurations Default and have it pass. Comment out validation in ConfigurationsDefault.php, then JSON passes. Then, no editing is possible.

Editing pages report exceptions:

ErrorException:
Illegal string offset 'configuration'

Cannot access offset of type string on string {"userId":"95c8d6d5-...
/vendor/mitydigital/statamic-tinymce-cloud/src/Fieldtypes/TinymceCloud.php:38

Added logging there to check default variables :
{"cloud_channel":"6","defaults":[{"name":"Simple","configuration":"{ \"height\":500, \t\"plugins\":[\"image\", \"table\", \"wordcount\"], \t \"toolbar\":\"undo redo | blocks | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | remove format | help\" }","type":"configuration","enabled":true}]}

Further logging suggested the json decoded $config is an empty object.

v2 screenshot of workaround

Screen Shot 2022-09-06 at 6 45 11 pm

Steps to reproduce

Install TinyMCE via composer.json mod and upgrade.
Clear all caches.
Log in to statamic cp.
Go to TinyMCE
Add valid JSON to Configuration form and submit.


Repeat with validation removed.

Screenshots show success / fail when validation off / on
Screen Shot 2022-09-06 at 6 13 59 pm
Screen Shot 2022-09-06 at 6 10 19 pm

Environment and versions

Laravel Framework 9.27.0
Statamic 3.3.34
Apache/2.4.53 (Unix) LibreSSL/3.3.6 PHP/8.1.9 
TinyMCE 1.0.3 & 2.0.1
---

Additional details

I am using v1.0.3 successfully with the workaround, however I continue to receive 'domain not registered ... ' message.

Have account, domain is registered, REQUEST referer header is in the domain.

Have KEY correctly set in .env

Nuked everything, new site, used the : composer require mitydigital/statamic-tinymce-cloud install method. Same JSON issues.

Same probs installing on different machine / enviro - Ubuntu / NGINX

For v2 did wipe 'init' from relevant page yamls

First time using Statamic, may not be a bug, may be my dimness ...

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.