nova-tinymce icon indicating copy to clipboard operation
nova-tinymce copied to clipboard

Add possibility to output html

Open novelnet opened this issue 2 years ago • 5 comments

Would be nice to have kind of ->asHtml() option to display optionally raw html

novelnet avatar May 10 '22 12:05 novelnet

modify src/NovaTinyMCE.php :

add public $asHtml = false;

   public function asHtml()
    {

        $this->asHtml = true;

        return $this;
    }

and 'asHtml' => $this->asHtml,

in jsonSerialize array_merge

  public function jsonSerialize(): array
    {
        return array_merge(parent::jsonSerialize(), [
            'asHtml' => $this->asHtml,
            'shouldShow' => $this->shouldBeExpanded(),
        ]);
    }

does the job

breizhwave avatar Jun 09 '22 18:06 breizhwave

Take a look at PR #77

chrispage1 avatar Jul 12 '22 08:07 chrispage1

Merged

emilianotisato avatar Jul 15 '22 18:07 emilianotisato

Version 2.0.0 does not have this update, when can you release the new version?

semihASH avatar Feb 21 '23 16:02 semihASH

@emilianotisato I see you merged this last year. Would be great if you could tag a release. Thanks!

jonfackrell avatar Apr 04 '23 16:04 jonfackrell