Se desea agregar un enlace en la sección de noticia, pero el editor no soporta el ingreso de un hipervinculo.

Ingresando manualmente el hipervinculo, tampoco funciona, dado que en la base de datos no guarda correctamente las etiquetas html.

Version de evolution: 1.10.1.0

Ver Imagen

asked 26 Jun '17, 11:26

Sandy's gravatar image

Sandy
(suspended)
accept rate: 16%


Ese editor de texto es algo limitado, pero se puede agregar un poco mas de funcionalidad.

Se tiene que crear una vista custom en esta ruta: C:\inetpub\wwwroot\Evolution\Views\Shared

Copia dentro de esa carpeta el archivo ContentEditor.ascx lo abres para editar, casi al final hay una funcion javascript CargarEditor y sustituye su contenido por lo que aparece al final

Hay un boton que dice HTML y con ese se puede editar el codigo HTML del contenido

function CargarEditor<%= contentEditorId%>() {
        $("#<%= contentEditorId %>").tinymce({
            script_url : '<%= Html.MakeAbsoluteURL("/Scripts/tiny_mce/tiny_mce.js") %>',
            theme: "advanced",
            // General options
            theme : "advanced",
            plugins : "pagebreak,style,layer,table,save,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

            // Theme options
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,code,|,forecolor,backcolor",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,emotions,iespell,",
            theme_advanced_buttons4 : "",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true

        });
    }
link

answered 26 Jun '17, 14:00

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

edited 26 Jun '17, 14:01

en mi caso en la versión 1.11.2.3 he podido incrustar un ancla funcional inspeccionando con la herramienta de desarrollo (click derecho -> inspeccionar) editando como html desde dicha herramienta para poder escribirlo. También probe crear la vista custom pero no me funcionó ya que no me mostró la ventana para poder escribir (reinicie el sitio y probé en chrome e IE).

link

answered 05 May '19, 19:27

Jimy%20Tobar's gravatar image

Jimy Tobar ♦♦
(suspended)
accept rate: 56%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×3

Asked: 26 Jun '17, 11:26

Seen: 1,069 times

Last updated: 05 May '19, 19:27

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática