TIWSummernote language - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: TIWSummernote language (/thread-3208.html) |
TIWSummernote language - gerritschurer - 05-04-2023 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 ? RE: TIWSummernote language - gerritschurer - 05-16-2023 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... RE: TIWSummernote language - jeroen.rottink - 05-16-2023 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. RE: TIWSummernote language - gerritschurer - 06-05-2023 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. RE: TIWSummernote language - gerritschurer - 06-06-2023 Not having access to the Intraweb sources, I tried to use Javacsript in the $(document).ready() event of my template. Been puzzling for hours, but nothing changed the language of the hints of the Summernote component. I hope a future release of Intraweb will have a language setting Finally I managed to create a workaround. Step 1
Step 2
Step 3
Recompile and run... RE: TIWSummernote language - Alexandre Machado - 06-06-2023 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. RE: TIWSummernote language - gerritschurer - 06-06-2023 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. RE: TIWSummernote language - Alexandre Machado - 06-07-2023 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. |