Foren

Loading problem ou Bugg Loadin no editor de html CKEditor no Liferay 6.x

Moisés Rabelo de Lima, geändert vor 12 Jahren.

Loading problem ou Bugg Loadin no editor de html CKEditor no Liferay 6.x

New Member Beitrag: 1 Beitrittsdatum: 29.03.12 Neueste Beiträge
Existe um problema de carregamento no Web editor CKEditor (Editor de html) na versão 6 do liferay, por vezes ele não carrega completamente, atrapalhando a produtividade. Notei que esse problema é comum e acontece em vários navegadores, acredito que a causa seja porque, o velocity do IFRAME do web editor, é montando depois da função javascript que cria o editor, isso explicaria o motivo, pelo qual, o reloadin na página se faz necessário.

Solução:

1 ) Certifique-se que tenha jquery na página para que o comando abaixo funcione;

2) Coloque esse script na página, sugiro no tema;

/* Correção de bugg - CKEditor - inicio */

AUI().ready(
function() {
$(".journal-article-component-container iframe").attr("src", $(".journal-article-component-container iframe").attr("src"));
});

/* Correção de bugg - CKEditor - final */

There is a problem loading the Web editor CKEditor Editor (html) version 6 of liferay, sometimes it does not load completely, hampering productivity. I noticed that this problem is common and happens in multiple browsers, I believe the cause is because the velocity of the IFRAME's web editor, is mounting after the javascript function that creates the editor, that would explain the reason for which the reloadin page is necessary.

Solution: [/ b]

1) Make sure you have jquery on the page to run the command below;

2) Put this script on the page, I suggest the theme;

/* Correção de bugg - CKEditor - inicio */

AUI().ready(
function() {
$(".journal-article-component-container iframe").attr("src", $(".journal-article-component-container iframe").attr("src"));
});

/* Correção de bugg - CKEditor - final */