The tinymce.min.js is downloaded from cdn.tinymce.com
Is there anyway to configure the componemnt to download that file from OUR webserver as resource?
Thanks.
The tinymce.min.js is downloaded from cdn.tinymce.com
Is there anyway to configure the componemnt to download that file from OUR webserver as resource?
Thanks.
The 2.0 version downloads it from the application server by default (through the add-on jar). It can be overridden for custom installation/location.
Excellent ! Thank you.
Now it seems that the following method is no longer available in this release ??
So how do we set the configuration for the editor / Customize the menu etc?
private TinyMce tmcdeditor1 = new TinyMce();
String tmcoptions = “{"resize": false, "menubar": "tools help", "branding": false, "plugins" : "link image code", "toolbar" : "undo redo | styleselect | forecolor | bold italic underline | alignleft aligncenter alignright alignjustify | outdent indent | link image | code" }”;
tmcdeditor1.setConfig(tmcoptions);
I had the same question.
But also, when I run 2.1 then I get the message saying: “This Domain is not registered with Tiny Cloud”. I thought, it is not using the Cloud anymore?
Did I made something wrong?
Check the example code here:
\u0000Ii n83, this line should inject the local tinymce:\nhttps://github.com/mstahv/tinymce-for-flow/blob/master/src/main/java/org/vaadin/tinymce/TinyMce.java#L83\n\nThat probably fails for some reaon in your environment. If the web component can’t find tinymce scripts injected, it falls back to the cloud hosting (which these days require some domain registration and meybe $$$ \uD83E\uDD14). Can you check the network tab in your brower inspector? Anything special in your applicatin that could cause this?
Hi Matti,
very good Job! Works really good and I like your additional “native” configuration settings now.
Just one question as it seems like I am making something wrong.
You support Plugins and Toolbar as direct methods now and you mentioned, for other settings we should use getElement().setAttribute(String, String).
I tried this now but it seems not to work:
tinymce.getElement().setAttribute(“branding”, false);
or
tinymce.getElement().setAttribute(“branding”, “false”);
Am I donig something wrong?
Hi Matti,
I removed the old TinyMCE client and cleared the cache and rebootet the browser as well, seems to work now.
Is there a way to use the AppKey when it makes the fallback?
Anyway, so far it works good but I will keep testing.
I am guessing but I think this has something to do with @push which I am using.
When I make changes in the code, the webserver auto-reboots and then you can see in the Browser the error:
“Trying to start a new request while another is active”
When this comes up, I get the “domain is not registered error”.
Log:
[WARN ]
04-12-20 09:25:55 [72]
In Line [321]
ServerRpcHandler - Resynchronizing UI by client’s request. Under normal operations this should not happen and may indicate a bug in Vaadin platform. If you see this message regularly please open a bug report at https://github.com/vaadin/flow/issues
Looks like the “branding” option is not available for the Web Component as attribute. We’ll somehow need to make all config options available again natively to get that, and possibly some other options, back again.
The rpc error looks bit weird. If you have a way to reproduce, share an example code to do that and I can investigate that further. Might be a framework issue as stated in the warning.