artem_niko Posted November 18, 2022 Share Posted November 18, 2022 Hello! How make this button always activate? It is disabled by default. I need the text in UniHTMLMemo to always be shown in HTML format Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 10 hours ago, artem_niko said: Hello, One possible solution: UniHTMLMemo.ClientEvents.ExtEvents -> function initialize(sender, eOpts) { sender.toggleSourceEdit(); } 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 3 minutes ago, Sherzod said: Hello, One possible solution: UniHTMLMemo.ClientEvents.ExtEvents -> function initialize(sender, eOpts) { sender.toggleSourceEdit(); } Thanks, it works! Such a question. Why is it that when you use this code (or manually turn on the button), the ability to use text alignments, change the style, color of the text, etc. is disabled? For example, in this mode, I want to replace the word BEGIN with <b>BEGIN</b> so that this word is highlighted in bold, but, at the same time, that format, text indents, line breaks, would remain working, as it remains now. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 31 minutes ago, artem_niko said: Why is it that when you use this code (or manually turn on the button), the ability to use text alignments, change the style, color of the text, etc. is disabled? Because it's not an HTML syntax editor. You may need to use UniSyntaxEditEx. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 4 minutes ago, Sherzod said: Because it's not an HTML syntax editor. You may need to use UniSyntaxEditEx. i'm understant this... But, I can't use UniSyntaxEditEx, because I'm get error, when compile project: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 Just now, artem_niko said: But, I can't use UniSyntaxEditEx, because I'm get error, when compile project: Strange, what build are you using? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 5 minutes ago, Sherzod said: Strange, what build are you using? 1.90.0.1555 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 8 minutes ago, artem_niko said: 1.90.0.1555 Have you deleted or somehow customized uniGUI folders and files!? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 9 minutes ago, Sherzod said: Have you deleted or somehow customized uniGUI folders and files!? What do mean? I didn't delete any files. I use one CSS file for the project. This error occurs when I just put the component on the frame and that's it. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 1 hour ago, artem_niko said: For example, in this mode, I want to replace the word BEGIN with <b>BEGIN</b> so that this word is highlighted in bold, but, at the same time, that format, text indents, line breaks, would remain working, as it remains now. Well, then you can use this by imagining that you are in edit mode (in this case you may need to hide this button). 8 minutes ago, artem_niko said: What do mean? I didn't delete any files. I use one CSS file for the project. This error occurs when I just put the component on the frame and that's it. Okay, could you please make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 1 minute ago, Sherzod said: Okay, could you please make a simple testcase to check? I'll try to check later on an empty project. 2 minutes ago, Sherzod said: Well, then you can use this by imagining that you are in edit mode (in this case you may need to hide this button) How can I hide this button? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 4 minutes ago, artem_niko said: How can I hide this button? For example like this: function initialize(sender, eOpts) { sender.getToolbar().getComponent('sourceedit').hide(); } 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.