mitydigital / statamic-tinymce-cloud Goto Github PK
View Code? Open in Web Editor NEWA Statamic fieldtype for TinyMCE using Tiny Cloud for Statamic 3.3+ and Statamic 4.0
Home Page: https://docs.mity.com.au/tinymce-cloud
License: MIT License
A Statamic fieldtype for TinyMCE using Tiny Cloud for Statamic 3.3+ and Statamic 4.0
Home Page: https://docs.mity.com.au/tinymce-cloud
License: MIT License
is there way to add entry link
I want to add the character soft hyphen to the toolbar.
More informations:
https://www.tiny.cloud/docs/tinymce/6/custom-menu-toolbar-button/
I need the addMenuButton function for example.
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
...
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
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
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
---
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 ...
could you give an example, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.