Skip to content

Commit

Permalink
Ajustes ao adicionar "riscado" em algum texto pelo editor trumbowyg (#…
Browse files Browse the repository at this point in the history
…2364)

* Ajustes ao adicionar "riscado" em algum texto pelo editor trumbowyg

* Ajustando outros editores
  • Loading branch information
juliolobo authored Mar 29, 2024
1 parent c8cd9dc commit 41a201a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion application/views/conecte/adicionarOs.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
});

$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
3 changes: 2 additions & 1 deletion application/views/conecte/detalhes_os.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@
<script type="text/javascript">
$(document).ready(function() {
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});

Expand Down
3 changes: 2 additions & 1 deletion application/views/garantias/adicionarGarantia.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
dateFormat: 'dd/mm/yy'
});
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
3 changes: 2 additions & 1 deletion application/views/garantias/editarGarantia.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
dateFormat: 'dd/mm/yy'
});
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
3 changes: 2 additions & 1 deletion application/views/os/adicionarOs.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@
dateFormat: 'dd/mm/yy'
});
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
3 changes: 2 additions & 1 deletion application/views/os/editarOs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,8 @@ function validarDesconto(resultado, valor) {
});

$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
3 changes: 2 additions & 1 deletion application/views/vendas/adicionarVenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
dateFormat: 'dd/mm/yy'
});
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
$('.addclient').hide();
});
Expand Down
3 changes: 2 additions & 1 deletion application/views/vendas/editarVenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ function validarDesconto(resultado, valor) {
dateFormat: 'dd/mm/yy'
});
$('.editor').trumbowyg({
lang: 'pt_br'
lang: 'pt_br',
semantic: { 'strikethrough': 's', }
});
});
</script>
2 changes: 1 addition & 1 deletion assets/trumbowyg/trumbowyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
['viewHTML'],
['undo', 'redo'], // Only supported in Blink browsers
['formatting'],
['strong', 'em', 'del'],
['strong', 'em', 'strikethrough'],
['superscript', 'subscript'],
['link'],
['insertImage'],
Expand Down

0 comments on commit 41a201a

Please sign in to comment.