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

Add possibility to output html #70

Open
novelnet opened this issue May 10, 2022 · 5 comments
Open

Add possibility to output html #70

novelnet opened this issue May 10, 2022 · 5 comments

Comments

@novelnet
Copy link

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

@breizhwave
Copy link

breizhwave commented Jun 9, 2022

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

@chrispage1
Copy link

Take a look at PR #77

@emilianotisato
Copy link
Owner

Merged

@semihASH
Copy link

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

@jonfackrell
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants