Posts: 11
Threads: 4
Joined: May 2020
Reputation:
0
Location: Netherlands
I am pleasantly surprised with the Summernote component. The missing documentation was overcome, but I can't manage to change the language of the component, such as the question "To what URL should this link go?". How can I change the texts of the component ?
Posts: 11
Threads: 4
Joined: May 2020
Reputation:
0
Location: Netherlands
Really ? Is there no one out there who can help me with this problem? I do not need to have it completely worked out for me, but just a hint to help me find the right direction...
Posts: 145
Threads: 28
Joined: May 2018
Reputation:
12
Location: Netherlands
Hi Gerrit,
I did test it but never posted my results. TIWSummernote initializes the summernote control but does not give you ways to influence this initialization phase other than setting the TIWSummernote properties. Language is not one of them. I have not found a way to change the summernote settings like language after the init phase. So only way is to change the TIWSummernote init code. I don't know if you have access to the Intraweb sources but you could change the TIWSummernote.RenderHTML() method and include 'lang: "nl-NL",'. You also have to make sure the script file 'summernote-nl-NL.js' is loaded.
Posts: 11
Threads: 4
Joined: May 2020
Reputation:
0
Location: Netherlands
Hi Jeroen,
Thanks for your answer. I will try to solve my problem with your directions. If I succeed, I will report my solution here.
Posts: 2,299
Threads: 202
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
06-06-2023, 08:24 AM
(This post was last modified: 06-06-2023, 08:28 AM by Alexandre Machado.)
Thanks for sharing your solution.
We are introducing the "Lang" property as an easy way to customize SN language on the next IW release.
It has been already implemented and committed to our code base.
Posts: 11
Threads: 4
Joined: May 2020
Reputation:
0
Location: Netherlands
That would be great ! Unfortunately I am currently stuck with Intraweb 15.2.69, because CGDevtools appears to be deceased (no replies to the forum and on emails) and does not (or very slowly) release new versions. That was one of the reasons to switch to the IWSummernote component as an alternative HTML editor.
Posts: 2,299
Threads: 202
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
If you are using CG in your projects, and don't intend to replace it, I suggest that you put some thought into purchasing their source code. You will be free from this problem, which can become potentially serious.