Jump to content

HTML text format in UniHTMLMemo is always


artem_niko

Recommended Posts

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?

image.png.d0ec11168987d342bcfa515a12e900a9.png

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...