Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wisywig widget #21

Open
sergeyglazyrindev opened this issue Jan 9, 2022 · 0 comments
Open

Wisywig widget #21

sergeyglazyrindev opened this issue Jan 9, 2022 · 0 comments
Labels

Comments

@sergeyglazyrindev
Copy link
Owner

We should add wisywig widget as it is exists in the old uadmin implementation.(probably TinyMCE)
Corresponding html from previous implementation:

html                 
                 <td style="width:80%;" class="search">
                    <label class="col-sm-12 control-label form_label visible-xs" data-toggle="tooltip" data-placement="bottom" title="{{ .Help }}"><span class="camelcaseFix">{{.DisplayName}}</span>{{ if eq .Help "" }}{{ else }}<span class="text-muted" style="font-size:12px;"> <i class="fa fa-question-circle"></i>{{end}}:{{ if .Required }}<span style="color:#f00;font-weight:bold;">&nbsp;*</span>{{ end }}</label>
                    <div class="col-sm-12">
                      {{if $is_readonly}}
                      <div name="{{ .Name }}">{{ .Value }}</div>
                      {{else}}
                      <textarea name="{{ .Name }}" data-html-editor>{{ .Value }}</textarea>
                      {{end}}
                      {{ if eq .Help "" }}{{ else }}<span class="text-muted" style="font-size:12px;"><i class="fa fa-question-circle"></i> {{.Help}}</span>{{ end }}
                      {{if ne "" (.ErrMsg)}}<span class="text-muted" style="font-size:12px; color:red;"><i class="fa fa-question-circle"></i> {{.ErrMsg}}</span>{{ end }}
                    </div>
                  </td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant